Skip to content

Commit 51886da

Browse files
committed
Only extract last line from GraalVM home command
1 parent 2e733b4 commit 51886da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ def _graalvm_home(*, envfile, extra_dy=""):
521521
mx.run_mx(mx_args + ["build"])
522522
out = mx.OutputCapture()
523523
mx.run_mx(mx_args + ["graalvm-home"], out=out)
524-
home = out.data.strip()
524+
home = out.data.splitlines()[-1].strip()
525525
elif "*" in home:
526526
home = os.path.abspath(glob.glob(home)[0])
527527
mx.log("choosing GRAALVM_HOME=%s" % home)

0 commit comments

Comments
 (0)