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/018222.html below:

Import Modules from Zip Archives

[Python-Dev] PEP 273: Import Modules from Zip Archives [Python-Dev] PEP 273: Import Modules from Zip ArchivesGuido van Rossum guido@python.org
Mon, 29 Oct 2001 12:39:37 -0500
> 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 ''.

Sounds good to me.  Somebody please update the PEP.

--Guido van Rossum (home page: http://www.python.org/~guido/)



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