Lines Matching refs:archive
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,
21 and a path within the archive can be specified to only import from a
23 import from the :file:`lib/` subdirectory within the archive.
25 Any files may be present in the ZIP archive, but only files :file:`.py` and
27 (:file:`.pyd`, :file:`.so`) is disallowed. Note that if an archive only contains
28 :file:`.py` files, Python will not attempt to modify the archive by adding the
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,
36 ZIP archives with an archive comment are currently not supported.
76 archive.
112 :const:`None` if the archive does contain the module, but has no source
129 .. attribute:: archive
141 The :attr:`archive` and :attr:`prefix` attributes, when combined with a
151 Here is an example that imports a module from a ZIP archive - note that the