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

[Python-Dev] New and Improved Import Hooks

[Python-Dev] New and Improved Import Hooks [Python-Dev] New and Improved Import HooksMartin v. Löwis martin@v.loewis.de
05 Dec 2002 12:34:13 +0100
"M.-A. Lemburg" <mal@lemburg.com> writes:

> You should basically be able to say
> 
> 	sys.path.append('/usr/local/lib/python2.3/std.zip')
> 
> and have the Python std lib at your fingertips. From a user
> POV I don't want to bother about how Python manages to get
> at the stuff inside the ZIP archive.
> 
> Also note that any solution using special objects in sys.path
> is not compatible with the PYTHONPATH environment variable
> (or registry setting). The above approach is...

It appears you haven't studied Just's patch at all. It allows you to
do the sys.path.append, put the zipfile into PYTHONPATH, and *still*
uses special objects on sys.path for zipimports.

Regards,
Martin




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