From 52e14d640be3a7fa2c17f5a2a6bc9626d622aa40 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Mon, 30 Dec 2002 22:08:05 +0000 Subject: 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. --- Python/pythonrun.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Python/pythonrun.c') 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__ */ -- cgit v1.2.1