Skip to content

Commit d2e1596

Browse files
committed
fix polyglot embedding launchers
(cherry picked from commit 024f4fd)
1 parent 52a865c commit d2e1596

File tree

1 file changed

+2
-4
lines changed
  • graalpython/lib-graalpython/modules/standalone

1 file changed

+2
-4
lines changed

graalpython/lib-graalpython/modules/standalone/__main__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@
119119
MVN_CODE_PREFIX = "src/main/java"
120120
MVN_RESOURCE_PREFIX = "src/main/resources"
121121

122-
POSIX_LAUNCHER_SCRIPT = r"""
123-
#!/usr/bin/env bash
122+
POSIX_LAUNCHER_SCRIPT = r"""#!/usr/bin/env bash
124123
125124
source="${BASH_SOURCE[0]}"
126125
while [ -h "$source" ] ; do
@@ -149,8 +148,7 @@
149148
mvn -f "${location}/pom.xml" exec:exec -Dexec.executable="${JAVA}" -Dexec.workingdir="${curdir}" -Dexec.args="--module-path %classpath '-Dorg.graalvm.launcher.executablename=$0' --module org.graalvm.py.launcher/com.oracle.graal.python.shell.GraalPythonMain"
150149
"""
151150

152-
WIN32_LAUNCHER_SCRIPT = r"""
153-
@echo off
151+
WIN32_LAUNCHER_SCRIPT = r"""@echo off
154152
REM Invoke the GraalPy launcher through Maven, passing any arguments passed to
155153
REM this script via GRAAL_PYTHON_ARGS. To avoid having to deal with multiple
156154
REM layers of escaping, we store the arguments into GRAAL_PYTHON_ARGS delimited

0 commit comments

Comments
 (0)