Skip to content

Commit f30e969

Browse files
committed
when copying the launcher to modify it for jacoco, work on the original file, not symlinks
1 parent 3f4be1b commit f30e969

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import itertools
3131
import json
3232
import os
33+
import pathlib
3334
import platform
3435
import re
3536
import shlex
@@ -606,7 +607,7 @@ def run_python_unittests(python_binary, args=None, paths=None, aot_compatible=Tr
606607
# We need to make sure the arguments get passed to subprocesses, so we create a temporary launcher
607608
# with the arguments
608609
basedir = os.path.realpath(os.path.join(os.path.dirname(python_binary), '..'))
609-
launcher_path = os.path.join(basedir, 'bin', 'graalpython')
610+
launcher_path = str((pathlib.Path(basedir) / 'bin' / 'graalpython').resolve())
610611
launcher_path_bak = launcher_path + ".bak"
611612
shutil.copy(launcher_path, launcher_path_bak)
612613
try:

0 commit comments

Comments
 (0)