importing packages from a zip file
exarkun at divmod.com
Wed Jun 29 20:15:09 CEST 2005
On Wed, 29 Jun 2005 18:49:10 +0000, Peter Tillotson <none at no.chance> wrote:
>should have been
>from myZip.zip import base.branch1.myModule.py
>and no it didn't work, anyone know a reason why this syntax is not
>sorry posted the soln again, it works but feels nasty
Including paths in source files is a disaster. As soon as you do it, you need to account for alternate installation schemes by rewriting portions of your source files.
Separating path names from module names lets you avoid most of this mess.
More information about the Python-list