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

Import Modules from Zip Archives

[Python-Dev] PEP 273: Import Modules from Zip Archives [Python-Dev] PEP 273: Import Modules from Zip ArchivesMark Hammond MarkH@ActiveState.com
Fri, 9 Nov 2001 14:28:18 +1100
[James]
> But sys.prefix is obtained from a search of the directory
> structure for a "landmark" file, namely os.py.  When the Python
> library is in a zip file, it is likely that no landmark files will
> be found, and sys.prefix will contain garbage.

Good point! :)

> 
> Since sys.prefix is searched for, its name is unpredictable.  We
> need a known location for python22.zip.
> 
> How about using the full path name of pythonXX.dll with the last three
> characters changed to "zip"?  This associates the libraries with the DLL,
> which is more logical than associating them with the executable.  And the
> file name is identical but with "zip" instead of "dll".
> 
> Does this work, and solve all embedding problems?

Sounds OK to me.

Mark.




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