We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d059a6b commit 68c62ffCopy full SHA for 68c62ff
builder/main.py
@@ -69,7 +69,8 @@ def add_to_pythonpath(path):
69
# Add to PYTHONPATH environment variable
70
if "PYTHONPATH" in os.environ:
71
current_paths = os.environ["PYTHONPATH"].split(os.pathsep)
72
- if normalized_path not in current_paths:
+ normalized_current_paths = [os.path.normpath(p) for p in current_paths]
73
+ if normalized_path not in normalized_current_paths:
74
os.environ["PYTHONPATH"] = normalized_path + os.pathsep + os.environ.get("PYTHONPATH", "")
75
else:
76
os.environ["PYTHONPATH"] = normalized_path
0 commit comments