A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-December/030856.html below:

[Python-Dev] Another approach for the import mechanism

[Python-Dev] Another approach for the import mechanism [Python-Dev] Another approach for the import mechanismSamuele 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.




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4