summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2002-12-30 22:08:05 +0000
committerJust van Rossum <just@letterror.com>2002-12-30 22:08:05 +0000
commitdaf15259d651a4e3593abc5bf26705ee638debb1 (patch)
treea6580cc452cfa022c750defb9dd8303db68ae313 /Python/pythonrun.c
parentba69383f91e17b5251be95b98820b84ffcc257bf (diff)
downloadcpython-daf15259d651a4e3593abc5bf26705ee638debb1.tar.gz
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 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index a31c2d99ba..7469cb8d43 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -161,6 +161,8 @@ Py_Initialize(void)
/* phase 2 of builtins */
_PyImport_FixupExtension("__builtin__", "__builtin__");
+ _PyImportHooks_Init();
+
initsigs(); /* Signal handling stuff, including initintr() */
initmain(); /* Module __main__ */