Message309164
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. |
|
Date |
User |
Action |
Args |
2017-12-29 08:39:07 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, zach.ware, steve.dower, mliska |
2017-12-29 08:39:07 | eryksun | set | messageid: <1514536747.63.0.213398074469.issue32434@psf.upfronthosting.co.za> |
2017-12-29 08:39:07 | eryksun | link | issue32434 messages |
2017-12-29 08:39:07 | eryksun | create | |
|