diff --git a/Python/import.c b/Python/import.c index 6eeefdf3f6d..ca3de3d0235 100644 --- a/Python/import.c +++ b/Python/import.c @@ -962,6 +962,13 @@ initimp() dictinsert(d, "C_EXTENSION", v); XDECREF(v); +#ifdef macintosh + v = newintobject(PY_RESOURCE); + dictinsert(d, "PY_RESOURCE", v); + XDECREF(v); +#endif + + if (err_occurred()) fatal("imp module initialization failed"); }