Skip to content

Commit 6b49b10

Browse files
tomasstupkatimfel
authored andcommitted
drop GRAAL_PYTHON_ARGS from env after it was parsed
(cherry picked from commit a8aded0)
1 parent 7928a85 commit 6b49b10

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/PosixModuleBuiltins.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,11 @@ public void postInitialize(Python3Core core) {
314314
PDict environ = core.factory().createDict();
315315
String pyenvLauncherKey = "__PYVENV_LAUNCHER__";
316316
for (Entry<String, String> entry : getenv.entrySet()) {
317+
if(entry.getKey().equals("GRAAL_PYTHON_ARGS")) {
318+
// was already processed at startup in GraalPythonMain and
319+
// we don't want subprocesses to pick it up
320+
continue;
321+
}
317322
Object key, val;
318323
if (PythonOS.getPythonOS() == PythonOS.PLATFORM_WIN32) {
319324
key = toTruffleStringUncached(entry.getKey());

0 commit comments

Comments
 (0)