Skip to content

Commit 8bc5a83

Browse files
committed
Correctly use option WithJavaStacktrace in launcher.
1 parent 66d7532 commit 8bc5a83

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
@@ -117,8 +117,8 @@ def get_jdk():
117117

118118
def python(args, **kwargs):
119119
"""run a Python program or shell"""
120-
if '--python.WithJavaStacktrace' not in args:
121-
args.insert(0, '--python.WithJavaStacktrace')
120+
if not any(arg.startswith('--python.WithJavaStacktrace') for arg in args):
121+
args.insert(0, '--python.WithJavaStacktrace=1')
122122

123123
do_run_python(args, **kwargs)
124124

0 commit comments

Comments
 (0)