Eryk Sun <eryk...@gmail.com> added the comment:
In Windows, paths that are relative to the current directory on a drive aren't 
resolved. The following should be resolved by the current code:

    >>> os.chdir('C:/Temp')
    >>> pathlib.Path('C:').absolute()
    WindowsPath('C:')

But _from_parts() has bugs with drive-relative paths. 

Assuming the bugs are fixed, when a path has a drive, Path.absolute() should 
resolve against abspath(self.drive) instead of getcwd().

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue29688>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to