Skip to content

Commit 69234e2

Browse files
manuelbb-upbmkitti
authored andcommitted
modified julia_py_executable to respect PYTHONPATH
1 parent 6b8c10d commit 69234e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/julia/tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ def julia_py_executable():
165165
# if no candidate in an alternate scheme, try the standard install location
166166
# see https://docs.python.org/3/install/index.html#alternate-installation
167167
scripts_paths = [
168-
sysconfig.get_path("scripts", scheme) for scheme in sysconfig.get_scheme_names()
168+
*[ os.path.join(pypath, "bin") for pypath in os.environ.get("PYTHONPATH").split(os.pathsep) ],
169+
*[sysconfig.get_path("scripts", scheme) for scheme in sysconfig.get_scheme_names()],
169170
]
170171
scripts_paths.append(sysconfig.get_path("scripts"))
171172

0 commit comments

Comments
 (0)