You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 for internal use, but that's not the expected behavior for normpath(). The fallback implementation that's used on POSIX gets it right:
Bug report
Bug description:
from @eryksun (#117855 (comment)):
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Linked PRs
ntpath.normpath()for drive-relative paths #126801ntpath.normpath()for drive-relative paths (GH-126801) #127103