diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-06-18 20:06:44 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-06-18 20:06:44 (GMT) |
commit | ae12e19409b3dbaaea7b989735b02099e5d73fb4 (patch) | |
tree | 1d5370ba171d0d380fe46c281670dfd3a1992198 /Python | |
parent | 2c67362f709f8ee35d1df96afcafe55222ed1569 (diff) | |
download | cpython-ae12e19409b3dbaaea7b989735b02099e5d73fb4.zip cpython-ae12e19409b3dbaaea7b989735b02099e5d73fb4.tar.gz cpython-ae12e19409b3dbaaea7b989735b02099e5d73fb4.tar.bz2 |
Added PY_RESOURCE (mac only) to imp module
Diffstat (limited to 'Python')
-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"); } |