Skip to content

Commit

Permalink
Merge pull request #515 from mkitti/pr445_master
Browse files Browse the repository at this point in the history
Rebase of #445
  • Loading branch information
mkitti committed Nov 23, 2022
2 parents 6b8c10d + 37bbded commit 1e3de7b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/julia/tools.py
Expand Up @@ -162,10 +162,19 @@ def julia_py_executable():

# try to find installed julia-py script - check scripts folders under different installation schemes
# we check the alternate schemes first, at most one of which should give us a julia-py script
# if the environment variable `PYTHONPATH` is set, we additionally check whether the script is there
# if no candidate in an alternate scheme, try the standard install location
# see https://docs.python.org/3/install/index.html#alternate-installation
scripts_paths = [
sysconfig.get_path("scripts", scheme) for scheme in sysconfig.get_scheme_names()
*[
sysconfig.get_path("scripts", scheme)
for scheme in sysconfig.get_scheme_names()
],
*[
os.path.join(pypath, "bin")
for pypath in os.environ.get("PYTHONPATH", "").split(os.pathsep)
if pypath
],
]
scripts_paths.append(sysconfig.get_path("scripts"))

Expand Down

0 comments on commit 1e3de7b

Please sign in to comment.