[Python-Dev] Landmark
Guido van Rossum
guido@python.org
Fri, 12 May 2000 20:53:27 -0400
[me]
> > I'm not keen on changing the meaning of PYTHONPATH, but if you're
> > willing and able to set an environment variable, you can set
> > PYTHONHOME and it will abandon the search. If you want a command line
> > option for CGI, an option to set PYTHONHOME makes sense.
[MAL]
> The routines will still look for the landmark though (which
> is what surprised me and made me look deeper -- setting
> PYTHONHOME didn't work for me because I had only .pyo files
> in the lib/python1.5 dir).
>
> Perhaps Python should put more trust into the setting of
> PYTHONHOME ?!
Yes! Note that PC/getpathp.c already trusts PYTHONHOME 100% --
Modules/getpath.c should follow suit.
> [An of course the landmark should change to something like
> os.py -- I'll try to submit a patch for this.]
Maybe you can combine the two?
--Guido van Rossum (home page: http://www.python.org/~guido/)