Skip to content

Commit 3beb2b8

Browse files
committed
fixed jvm/bin/java check for windows in mx_graalpython.graalpy_standalone_home()
1 parent 040cfa7 commit 3beb2b8

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
@@ -764,7 +764,7 @@ def graalpy_standalone_home(standalone_type, enterprise=False, dev=False, build=
764764
python_home = os.path.abspath(glob.glob(python_home)[0])
765765
mx.log("Using GraalPy standalone from GRAALPY_HOME: " + python_home)
766766
# Try to verify that we're getting what we expect:
767-
has_java = os.path.exists(os.path.join(python_home, 'jvm', 'bin', 'java'))
767+
has_java = os.path.exists(os.path.join(python_home, 'jvm', 'bin', 'java.exe' if WIN32 else 'java'))
768768
if has_java != (standalone_type == 'jvm'):
769769
mx.abort(f"GRAALPY_HOME is not compatible with the requested distribution type.\n"
770770
f"jvm/bin/java exists?: {has_java}, requested type={standalone_type}.")

0 commit comments

Comments
 (0)