Skip to content

Commit 9e8d90d

Browse files
committed
do not set executable and graal_home attributes on the sys module during image build time
1 parent 5a18f9b commit 9e8d90d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ public void postInitialize(PythonCore core) {
194194

195195
if (!ImageInfo.inImageBuildtimeCode()) {
196196
sys.setAttribute("executable", PythonOptions.getOption(context, PythonOptions.Executable));
197+
sys.setAttribute("graal_python_home", context.getLanguage().getHome());
197198
}
198199
sys.setAttribute("graal_python_jython_emulation_enabled", PythonOptions.getOption(context, PythonOptions.EmulateJython));
199200
sys.setAttribute("graal_python_host_import_enabled", context.getEnv().isHostLookupAllowed());
200-
sys.setAttribute("graal_python_home", context.getLanguage().getHome());
201201
sys.setAttribute("graal_python_core_home", coreHome);
202202
sys.setAttribute("graal_python_stdlib_home", stdlibHome);
203203
sys.setAttribute("graal_python_capi_home", capiHome);

0 commit comments

Comments
 (0)