Skip to content

Commit 5368066

Browse files
committed
allow setting classpath prefix when calling the mx extension python directly
1 parent f88e69f commit 5368066

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def python(args, **kwargs):
119119
do_run_python(args, **kwargs)
120120

121121

122-
def do_run_python(args, extra_vm_args=None, env=None, jdk=None, extra_dists=None, **kwargs):
122+
def do_run_python(args, extra_vm_args=None, env=None, jdk=None, extra_dists=None, cp_prefix=None, cp_suffix=None, **kwargs):
123123
if not any(arg.startswith("--python.CAPI") for arg in args):
124124
capi_home = _get_capi_home()
125125
args.insert(0, "--python.CAPI=%s" % capi_home)
@@ -158,7 +158,7 @@ def do_run_python(args, extra_vm_args=None, env=None, jdk=None, extra_dists=None
158158

159159
graalpython_args.insert(0, '--experimental-options=true')
160160

161-
vm_args += mx.get_runtime_jvm_args(dists, jdk=jdk)
161+
vm_args += mx.get_runtime_jvm_args(dists, jdk=jdk, cp_prefix=cp_prefix, cp_suffix=cp_suffix)
162162

163163
if not jdk:
164164
jdk = get_jdk()

0 commit comments

Comments
 (0)