We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e13a82 commit ae5676aCopy full SHA for ae5676a
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/Python3Core.java
@@ -920,7 +920,7 @@ public final void postInitialize() {
920
* would never include the intrinsified _bz2 module in the native image since native
921
* access is never allowed during native image build time.
922
*/
923
- if (!getContext().isNativeAccessAllowed()) {
+ if (ImageInfo.inImageCode() && !getContext().isNativeAccessAllowed()) {
924
builtinModules.remove(BuiltinNames.BZ2);
925
sysModules.delItem(BuiltinNames.BZ2);
926
}
0 commit comments