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/2001-October/018221.html below:

Import Modules from Zip Archives

[Python-Dev] PEP 273: Import Modules from Zip Archives [Python-Dev] PEP 273: Import Modules from Zip ArchivesJames C. Ahlstrom jim@interet.com
Mon, 29 Oct 2001 12:28:44 -0500
Guido van Rossum wrote:
[Me]
> > I would like discussion on what the additional sys.path names are.
> 
> Well, propose some.

OK.  I propose that there is one name added to sys.path, and the
file name is "python%s%s.zip" % (sys.version[0], sys.version[2]).
For example, python22.zip.  This is the same on all platforms.

On Unix, the directory is sys.prefix + "/lib".  So for prefix
/usr/local, the path /usr/local/lib/python2.2/ is already on
sys.path, and /usr/local/lib/python22.zip would be added.

On Windows, the directory is the directory of sys.executable.

The zip archive name is always inserted as the second item
in sys.path.  The first always seems to be ''.

JimA



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