[Python-Dev] New and Improved Import Hooks

Just van Rossum just@letterror.com
Wed, 4 Dec 2002 16:12:37 +0100


Moore, Paul wrote:

> From: Just van Rossum [mailto:just@letterror.com]
> > In the meantime things have changed: death to sys.import_hooks,
> > and yay to arbitrary objects on sys.path. I think this is more
> > or less the same as iu.py, except that there's no need for a
> > "shadowpath" (if not a string, the sys.path item _is_ the
> > "owner").
> 
> How do I put a zipfile on my PYTHONPATH environment variable?

We do what Jython does: somewhere during initialisation, *.zip sys.path items
will be replaced by zipimporter instances.

Just