From daf15259d651a4e3593abc5bf26705ee638debb1 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/importdl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Python/importdl.h') diff --git a/Python/importdl.h b/Python/importdl.h index 8e04f286e0..5a2d45c462 100644 --- a/Python/importdl.h +++ b/Python/importdl.h @@ -16,7 +16,8 @@ enum filetype { PKG_DIRECTORY, C_BUILTIN, PY_FROZEN, - PY_CODERESOURCE /* Mac only */ + PY_CODERESOURCE, /* Mac only */ + IMP_HOOK }; struct filedescr { -- cgit v1.2.1