[New-bugs-announce] [issue25012] pathlib should allow converting to absolute paths without resolving symlinks

David Barnett report at bugs.python.org
Sun Sep 6 00:05:48 CEST 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue25012>
_______________________________________


More information about the New-bugs-announce mailing list