diff Python/pythonrun.c @ 26885:54aacb87beda legacy-trunk

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.
author Just van Rossum <just@letterror.com>
date Mon, 30 Dec 2002 22:08:05 +0000
parents 02ba4663cad2
children 12753e7b15f7
line wrap: on
line diff
--- a/Python/pythonrun.c	Mon Dec 30 22:04:23 2002 +0000
+++ b/Python/pythonrun.c	Mon Dec 30 22:08:05 2002 +0000
@@ -161,6 +161,8 @@
 	/* phase 2 of builtins */
 	_PyImport_FixupExtension("__builtin__", "__builtin__");
 
+	_PyImportHooks_Init();
+
 	initsigs(); /* Signal handling stuff, including initintr() */
 
 	initmain(); /* Module __main__ */