[Distutils] Re: Add multiple frozen modules

Gordon McMillan gmcm@hypernet.com
Mon, 12 Jul 1999 17:29:09 -0500


James C. Ahlstrom asks:

> Gordon McMillan wrote:
> > On Windows, this means you can have a complete Python installation
> > (independent of any other Python installation) in a single directory:
> > 
> > myPython/
> >  python.exe    (and/or pythonw.exe)
> >  python15.dll  (completely vanilla)
> >  py_lib.pyz
> >  exceptions.py (from the std distr)
> >  site.py       (hacked to load all the .pyz's)
> >  [any other .pyd's or .dll's you want]
> >  [more .pyz's if you want]
> >  [more .py's if you want]
> 
> But the normal PYTHON/Registry stuff is used to find
> site.py, no?  Is there any guarantee that the correct
> site.py and exceptions.py will be found?  The myPython/
> directory may not be on the path.

Not if you deliberately 
SET PYTHONPATH=.
which cuts the registry out entirely.

For my installer / standalone, I deliberately muck with the 
environment before loading python and executing the "main" script.

(I forgot imputil.py, archive.py and zlib.pyd in the above list).

- Gordon