diff options
-rw-r--r-- | Python/import.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c index 6eeefdf..ca3de3d 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"); } |