Skip to content

Commit

Permalink
importlib bootstrap path sep
Browse files Browse the repository at this point in the history
Co-authored-by: Алексей <[email protected]>
Co-authored-by: Naveen M K <[email protected]>
  • Loading branch information
3 people committed Aug 25, 2023
1 parent b3c221a commit 31a2f00
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Lib/importlib/_bootstrap_external.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
path_separators = ['\\', '/']
else:
path_separators = ['/']

if 'MSYSTEM' in _os.environ:
path_separators = path_separators[::-1]

# Assumption made in _path_join()
assert all(len(sep) == 1 for sep in path_separators)
path_sep = path_separators[0]
Expand Down

0 comments on commit 31a2f00

Please sign in to comment.