◐ Shell
clean mode source ↗

gh-129333: fix import error over nfs on Windows by ChrisDenton · Pull Request #129616 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

On Windows, realpath uses `GetFinalPathNameByHandleW` to resolve paths. This returns paths starting with a `\\?\` prefix, which is usually not what we want.

This change attempts to remove the prefix for \\?\UNC\ paths. A similar thing was already done for drive paths such as \\?\C:\.

@ChrisDenton ChrisDenton changed the title gh-12933: fix import error over nfs on Windows gh-129333: fix import error over nfs on Windows

Feb 3, 2025

Labels