Skip to content

Commit 8cfde1a

Browse files
committed
[GR-76855] Use Truffle Env APIs for GRAAL_PYTHONHOME lookup.
PullRequest: graalpython/4679
2 parents bb26543 + 7698d33 commit 8cfde1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/PythonContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ public void initializeHomeAndPrefixPaths(Env newEnv, String languageHome) {
15011501
String pythonHome = newEnv.getOptions().get(PythonOptions.PythonHome);
15021502
if (pythonHome.isEmpty()) {
15031503
try {
1504-
pythonHome = System.getenv("GRAAL_PYTHONHOME");
1504+
pythonHome = newEnv.getEnvironment().get("GRAAL_PYTHONHOME");
15051505
} catch (SecurityException e) {
15061506
}
15071507
}

0 commit comments

Comments
 (0)