summaryrefslogtreecommitdiffstats
path: root/PC/config.c
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2002-12-30 22:08:05 (GMT)
committerJust van Rossum <just@letterror.com>2002-12-30 22:08:05 (GMT)
commit52e14d640be3a7fa2c17f5a2a6bc9626d622aa40 (patch)
tree417c361ba0bae8b22b262570769933ccdd5ad5e0 /PC/config.c
parent60087fb45092d9c199cea162e58d9193c7c1558c (diff)
downloadcpython-52e14d640be3a7fa2c17f5a2a6bc9626d622aa40.zip
cpython-52e14d640be3a7fa2c17f5a2a6bc9626d622aa40.tar.gz
cpython-52e14d640be3a7fa2c17f5a2a6bc9626d622aa40.tar.bz2
PEP 302 + zipimport:
- new import hooks in import.c, exposed in the sys module - new module called 'zipimport' - various changes to allow bootstrapping from zip files I hope I didn't break the Windows build (or anything else for that matter), but then again, it's been sitting on sf long enough... Regarding the latest discussions on python-dev: zipimport sets pkg.__path__ as specified in PEP 273, and likewise, sys.path item such as /path/to/Archive.zip/subdir/ are supported again.
Diffstat (limited to 'PC/config.c')
-rw-r--r--PC/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/PC/config.c b/PC/config.c
index af023bf..b20831d 100644
--- a/PC/config.c
+++ b/PC/config.c
@@ -43,6 +43,7 @@ extern void initxreadlines(void);
extern void init_weakref(void);
extern void init_hotshot(void);
extern void initxxsubtype(void);
+extern void initzipimport(void);
extern void init_random(void);
/* XXX tim: what's the purpose of ADDMODULE MARKER? */
@@ -98,6 +99,7 @@ struct _inittab _PyImport_Inittab[] = {
{"_random", init_random},
{"xxsubtype", initxxsubtype},
+ {"zipimport", initzipimport},
/* XXX tim: what's the purpose of ADDMODULE MARKER? */
/* -- ADDMODULE MARKER 2 -- */