Skip to content

Commit 17aa96d

Browse files
committed
mx graalpy test: fuzzy recognize more graalpy launchers
1 parent 6718b57 commit 17aa96d

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
@@ -1093,7 +1093,7 @@ def graalpytest(args):
10931093
# if we got a binary path it's most likely CPython, so don't add graalpython args
10941094
if not args.python:
10951095
cmd_args += ["--experimental-options=true", "--python.EnableDebuggingBuiltins"]
1096-
elif args.python.endswith('graalpy') or args.python.endswith('graalpy-lt'):
1096+
elif 'graalpy' in os.path.basename(args.python):
10971097
gp_args = ["--vm.ea", "--vm.esa", "--experimental-options=true", "--python.EnableDebuggingBuiltins"]
10981098
mx.log(f"Executable seems to be GraalPy, prepending arguments: {gp_args}")
10991099
cmd_args += gp_args

0 commit comments

Comments
 (0)