Message412102
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(). |
|
Date |
User |
Action |
Args |
2022-01-29 20:10:47 | eryksun | set | recipients:
+ eryksun, brett.cannon, pitrou, methane, docs@python, serhiy.storchaka, Jim Fasarakis-Hilliard, 4-launchpad-kalvdans-no-ip-org, barneygale |
2022-01-29 20:10:47 | eryksun | set | messageid: <1643487047.55.0.288001145372.issue29688@roundup.psfhosted.org> |
2022-01-29 20:10:47 | eryksun | link | issue29688 messages |
2022-01-29 20:10:47 | eryksun | create | |
|