Skip to content

Commit 68c62ff

Browse files
authored
makes sure current entrys are converted to normpath
1 parent d059a6b commit 68c62ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builder/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ def add_to_pythonpath(path):
6969
# Add to PYTHONPATH environment variable
7070
if "PYTHONPATH" in os.environ:
7171
current_paths = os.environ["PYTHONPATH"].split(os.pathsep)
72-
if normalized_path not in current_paths:
72+
normalized_current_paths = [os.path.normpath(p) for p in current_paths]
73+
if normalized_path not in normalized_current_paths:
7374
os.environ["PYTHONPATH"] = normalized_path + os.pathsep + os.environ.get("PYTHONPATH", "")
7475
else:
7576
os.environ["PYTHONPATH"] = normalized_path

0 commit comments

Comments
 (0)