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 lutecki
Recipients lutecki, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-11-14.10:16:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573726602.08.0.459408660928.issue38793@roundup.psfhosted.org>
In-reply-to
Content
When a directory doesn't exist, the resolve() method trims everything except the first component (a doesn't exist here):

import pathlib
p = pathlib.Path(".", "a", "b", "c")
p
WindowsPath('a/b/c')
p.resolve(strict=False)
WindowsPath('C:/Python36/Scripts/a')

I would expect C:/Python36/Scripts/a/b/c
Am I missing something?
History
Date User Action Args
2019-11-14 10:16:42luteckisetrecipients: + lutecki, paul.moore, tim.golden, zach.ware, steve.dower
2019-11-14 10:16:42luteckisetmessageid: <1573726602.08.0.459408660928.issue38793@roundup.psfhosted.org>
2019-11-14 10:16:41luteckilinkissue38793 messages
2019-11-14 10:16:41luteckicreate