This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients 4-launchpad-kalvdans-no-ip-org, Jim Fasarakis-Hilliard, barneygale, brett.cannon, docs@python, eryksun, methane, pitrou, serhiy.storchaka
Date 2022-01-29.20:10:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643487047.55.0.288001145372.issue29688@roundup.psfhosted.org>
In-reply-to
Content
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().
History
Date User Action Args
2022-01-29 20:10:47eryksunsetrecipients: + eryksun, brett.cannon, pitrou, methane, docs@python, serhiy.storchaka, Jim Fasarakis-Hilliard, 4-launchpad-kalvdans-no-ip-org, barneygale
2022-01-29 20:10:47eryksunsetmessageid: <1643487047.55.0.288001145372.issue29688@roundup.psfhosted.org>
2022-01-29 20:10:47eryksunlinkissue29688 messages
2022-01-29 20:10:47eryksuncreate