Oct-18-2020, 03:27 AM
(This post was last modified: Oct-18-2020, 03:27 AM by MadisonAster.)
I've added support now for zip files in v3.0.6
Here's how the syntax works:
Here's how the syntax works:
ParentFolder/ ZippedFile.zip/ ZippedPackage/ <- and you want to import this zipped package __init__.py ZippedModule.py <- or this zipped module SubFolder1/ SubFolder2/ CurrentModule.py <- you are here
from FooFinder.ZippedFile import ZippedPackage from FooFinder.ZippedFile import ZippedModuleThis uses zipimport.zipimporter.load_module to do the loading of ZippedModule or ZippedPackage, so it's limited to just what zipimporter can see. Searching the contents of the zip folder recursively would make it more complicated, and I couldn't think of a good use case for it.