summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-06-18 20:06:44 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-06-18 20:06:44 (GMT)
commitae12e19409b3dbaaea7b989735b02099e5d73fb4 (patch)
tree1d5370ba171d0d380fe46c281670dfd3a1992198 /Python/import.c
parent2c67362f709f8ee35d1df96afcafe55222ed1569 (diff)
downloadcpython-ae12e19409b3dbaaea7b989735b02099e5d73fb4.zip
cpython-ae12e19409b3dbaaea7b989735b02099e5d73fb4.tar.gz
cpython-ae12e19409b3dbaaea7b989735b02099e5d73fb4.tar.bz2
Added PY_RESOURCE (mac only) to imp module
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c7
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");
}