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 eryksun, mliska, paul.moore, steve.dower, tim.golden, zach.ware
Date 2017-12-29.08:39:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1514536747.63.0.213398074469.issue32434@psf.upfronthosting.co.za>
In-reply-to
Content
If none of the components of a relative path exist, then splitting off the head returns an empty string in the second-to-last pass through the while loop. In the last pass, _getfinalpathname("") raises FileNotFoundError, and ultimately resolve() ends up returning `path`. To avoid this, the empty string needs to be replaced with a ".". Then the last pass can resolve the working directory.
History
Date User Action Args
2017-12-29 08:39:07eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, mliska
2017-12-29 08:39:07eryksunsetmessageid: <1514536747.63.0.213398074469.issue32434@psf.upfronthosting.co.za>
2017-12-29 08:39:07eryksunlinkissue32434 messages
2017-12-29 08:39:07eryksuncreate