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/030861.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 mechanismGustavo Niemeyer niemeyer@conectiva.com
Fri, 6 Dec 2002 00:11:02 -0200
> 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

That would kill the __init__.py that could be inside package.zip,
right? One could leave package.zip's __init__.py outside it, and
hack it as shown above, but it'd be great if this scheme was just
an option for setup.py (--compress-packages). Otherwise the scheme
must be prepared by the developer, not by the packager.

-- 
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]



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