New submission from David Barnett:
There doesn't seem to be any helper in pathlib to expand a relative path to an
absolute path *without* resolving symlinks.
For example, if I want to convert
pathlib.Path('some/path')
to
pathlib.Path('/full/path/to/some/path')
where some/path is a symlink, my best option seems to be
pathlib.Path(os.path.abspath(str(pathlib.Path('some/path'))))
----------
components: Library (Lib)
messages: 249936
nosy: mu_mind
priority: normal
severity: normal
status: open
title: pathlib should allow converting to absolute paths without resolving
symlinks
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue25012>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com