mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Fix pathlib import on windows
This commit is contained in:
1 file changed
+2
-1
Vendored
+2
-1
@@ -16,7 +16,8 @@ from urllib.parse import quote_from_bytes as urlquote_from_bytes
|
||||
supports_symlinks = True
|
||||
if os.name == 'nt':
|
||||
import nt
|
||||
if sys.getwindowsversion()[:2] >= (6, 0):
|
||||
# XXX RUSTPYTHON TODO: nt._getfinalpathname
|
||||
if False and sys.getwindowsversion()[:2] >= (6, 0):
|
||||
from nt import _getfinalpathname
|
||||
else:
|
||||
supports_symlinks = False
|
||||
|
||||
Reference in new issue
Block a user