Skip to content

Commit d059a6b

Browse files
authored
make sure current python env path is first in pythonpath
1 parent 08ef75a commit d059a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def add_to_pythonpath(path):
7070
if "PYTHONPATH" in os.environ:
7171
current_paths = os.environ["PYTHONPATH"].split(os.pathsep)
7272
if normalized_path not in current_paths:
73-
os.environ["PYTHONPATH"] += os.pathsep + normalized_path
73+
os.environ["PYTHONPATH"] = normalized_path + os.pathsep + os.environ.get("PYTHONPATH", "")
7474
else:
7575
os.environ["PYTHONPATH"] = normalized_path
7676

0 commit comments

Comments
 (0)