Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
from@eryksun (#117855 (comment)):
Note that the behavior for normalizing drive-relative paths is currently wrong in this case on Windows:
>>> nt._path_normpath('C:./spam')'C:.\\spam'That's the result that we want here when returning an explicit current directory forinternal use, but that's not the expected behavior for
normpath(). The fallback implementation that's used on POSIX gets it right:>>> ntpath.normpath('C:./spam')'C:spam'
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows