[Python-Dev] Another approach for the import mechanism

Samuele Pedroni pedronis@bluewin.ch
Fri, 6 Dec 2002 00:52:21 +0100


From: "Gustavo Niemeyer" <niemeyer@conectiva.com>
> - Allows me to ship a package inside a zip file, without asking
>   the user to change his path.
>

btw for single packages (once you can put zipfiles in sys.path or __path__) you
can achieve this
with __path__

package/
  __init__.py

    __path__[0] = os.path.join(__path__[0],'package.zip')

  package.zip

regards.