Skip to content

Commit

Permalink
importlib bootstrap path sep
Browse files Browse the repository at this point in the history
Co-authored-by: Алексей <alexey.pawlow@gmail.com>
Co-authored-by: Naveen M K <naveen521kk@gmail.com>
  • Loading branch information
3 people committed Dec 22, 2024
1 parent 3b94f15 commit 56b67bf
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 56b67bf

Please sign in to comment.