Skip to content

Commit 6bfddc6

Browse files
committed
use the local core's context
1 parent b6d78fb commit 6bfddc6

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/runtime/PythonContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ private void setupRuntimeInformation() {
238238
sysModules = (PDict) sysModule.getAttribute("modules");
239239

240240
builtinsModule = (PythonModule) sysModules.getItem("builtins");
241-
builtinsModule.setAttribute(__DEBUG__, !PythonOptions.getOption(PythonLanguage.getContextRef().get(), PythonOptions.PythonOptimizeFlag));
241+
builtinsModule.setAttribute(__DEBUG__, !PythonOptions.getOption(core.getContext(), PythonOptions.PythonOptimizeFlag));
242242

243243
mainModule = core.factory().createPythonModule(__MAIN__);
244244
mainModule.setAttribute(__BUILTINS__, builtinsModule);

0 commit comments

Comments
 (0)