Skip to content

Commit 7282f3e

Browse files
committed
Resolve launcher exec name to absolute path
1 parent 895c962 commit 7282f3e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

graalpython/com.oracle.graal.python.shell/src/com/oracle/graal/python/shell/GraalPythonMain.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,10 @@ private static String getLauncherExecName() {
358358
if (ProcessProperties.getArgumentVectorBlockSize() > 0) {
359359
binPathName = ProcessProperties.getArgumentVectorProgramName();
360360
}
361-
return binPathName != null ? binPathName : ProcessProperties.getExecutableName();
361+
if (binPathName != null) {
362+
return Paths.get(binPathName).toAbsolutePath().toString();
363+
}
364+
return ProcessProperties.getExecutableName();
362365
}
363366
return GraalPythonMain.BASH_LAUNCHER_EXEC_NAME;
364367
}

0 commit comments

Comments
 (0)