Skip to content

Commit 60339e8

Browse files
committed
[GR-6672] [GR-7713] Try to set a good graalpython home also when we're in a binary import
PullRequest: graalpython-open/34
2 parents 7641c72 + 52fcbce commit 60339e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,10 @@ def python_checkcopyrights(args):
575575
#
576576
# ----------------------------------------------------------------------------------------------------------------------
577577
if not os.getenv("GRAAL_PYTHONHOME"):
578-
os.environ["GRAAL_PYTHONHOME"] = os.path.join(_suite.dir, "graalpython")
578+
home = os.path.join(_suite.dir, "graalpython")
579+
if not os.path.exists(home):
580+
home = [d for d in _suite.dists if d.name == "GRAALPYTHON_GRAALVM_SUPPORT"][0].output
581+
os.environ["GRAAL_PYTHONHOME"] = home
579582

580583

581584
# ----------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)