Lines Matching refs:ZIP
6 :synopsis: support for importing Python modules from ZIP archives.
13 :file:`\*.py[co]`) and packages from ZIP-format archives. It is usually not
16 to ZIP archives.
19 also allows an item of :data:`sys.path` to be a string naming a ZIP file archive.
20 The ZIP archive can contain a subdirectory structure to support package imports,
25 Any files may be present in the ZIP archive, but only files :file:`.py` and
26 :file:`.py[co]` are available for import. ZIP import of dynamic modules
29 corresponding :file:`.pyc` or :file:`.pyo` file, meaning that if a ZIP archive
33 loaded from a ZIP archive; it is unlikely that :func:`reload` would be needed,
34 since this would imply that the ZIP has been altered during runtime.
36 ZIP archives with an archive comment are currently not supported.
41 Documentation on the ZIP file format by Phil Katz, the creator of the format and
66 :class:`zipimporter` is the class for importing ZIP files.
70 Create a new zipimporter instance. *archivepath* must be a path to a ZIP
71 file, or to a specific path within a ZIP file. For example, an *archivepath*
73 inside the ZIP file :file:`foo/bar.zip` (provided that it exists).
75 :exc:`ZipImportError` is raised if *archivepath* doesn't point to a valid ZIP
131 The file name of the importer's associated ZIP file, without a possible
137 The subpath within the ZIP file where modules are searched. This is the
138 empty string for zipimporter objects which point to the root of the ZIP
151 Here is an example that imports a module from a ZIP archive - note that the