Return the absolute version of a path.
(path)
| 568 | |
| 569 | else: # use native Windows method on Windows |
| 570 | def abspath(path): |
| 571 | """Return the absolute version of a path.""" |
| 572 | try: |
| 573 | return _getfullpathname(normpath(path)) |
| 574 | except (OSError, ValueError): |
| 575 | return _abspath_fallback(path) |
| 576 | |
| 577 | try: |
| 578 | from nt import _getfinalpathname, readlink as _nt_readlink |