Skip to content

Commit 31a2f00

Browse files
lazkaAlexpuxnaveen521kk
committed
importlib bootstrap path sep
Co-authored-by: Алексей <[email protected]> Co-authored-by: Naveen M K <[email protected]>
1 parent b3c221a commit 31a2f00

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
path_separators = ['\\', '/']
4343
else:
4444
path_separators = ['/']
45+
46+
if 'MSYSTEM' in _os.environ:
47+
path_separators = path_separators[::-1]
48+
4549
# Assumption made in _path_join()
4650
assert all(len(sep) == 1 for sep in path_separators)
4751
path_sep = path_separators[0]

0 commit comments

Comments
 (0)