34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
From 088ba0b2b0049ff649495f3389f3661794570d4b Mon Sep 17 00:00:00 2001
|
|
From: Christoph Reiter <reiter.christoph@gmail.com>
|
|
Date: Thu, 17 Jun 2021 18:52:30 +0530
|
|
Subject: [PATCH 072/N] importlib bootstrap path sep
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Co-authored-by: Алексей <alexey.pawlow@gmail.com>
|
|
Co-authored-by: Naveen M K <naveen521kk@gmail.com>
|
|
Signed-off-by: Naveen M K <naveen521kk@gmail.com>
|
|
---
|
|
Lib/importlib/_bootstrap_external.py | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py
|
|
index 9a73c7b..fc30499 100644
|
|
--- a/Lib/importlib/_bootstrap_external.py
|
|
+++ b/Lib/importlib/_bootstrap_external.py
|
|
@@ -42,6 +42,10 @@ if _MS_WINDOWS:
|
|
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]
|
|
--
|
|
2.34.1
|
|
|