File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99This module adds the ability to import Python modules (:file: `\* .py `,
1010:file: `\* .py[co] `) and packages from ZIP-format archives. It is usually not
1111needed to use the :mod: `zipimport ` module explicitly; it is automatically used
12- by the built-in :keyword: `import ` mechanism for `` sys.path ` ` items that are paths
12+ by the built-in :keyword: `import ` mechanism for :data: ` sys.path ` items that are paths
1313to ZIP archives.
1414
15- Typically, `` sys.path ` ` is a list of directory names as strings. This module
16- also allows an item of `` sys.path ` ` to be a string naming a ZIP file archive.
15+ Typically, :data: ` sys.path ` is a list of directory names as strings. This module
16+ also allows an item of :data: ` sys.path ` to be a string naming a ZIP file archive.
1717The ZIP archive can contain a subdirectory structure to support package imports,
1818and a path within the archive can be specified to only import from a
1919subdirectory. For example, the path :file: `/tmp/example.zip/lib/ ` would only
You can’t perform that action at this time.
0 commit comments