From ae12e19409b3dbaaea7b989735b02099e5d73fb4 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Sun, 18 Jun 1995 20:06:44 +0000 Subject: [PATCH] Added PY_RESOURCE (mac only) to imp module --- Python/import.c | 7 +++++++ 1 file changed, 7 insertions(+) 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"); }