Fix pathlib import on windows

This commit is contained in:
Noah committed 2020-11-02 12:41:44 -06:00
1 parent 56b46b7281
commit 1dccad99b3
1 file changed
+2 -1
+2 -1
View File
@@ -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