Steve Holden wrote:
I suspect rather that the OP is looking for os.environ, as in:
He was using the examples of PYTHONHOME and PYTHONPATH which have
specific meanings. Using sys.prefix is better than
os.environ["PYTHONHOME"], which is unlikely to be set.
--
Michael Hoffman
--
http://mail.python.o
Michael Hoffman wrote:
David Bear wrote:
How does one query the python environment, ie pythonhome
sys.prefix
> pythonpath
sys.path
etc.
[...]
I suspect rather that the OP is looking for os.environ, as in:
[EMAIL PROTECTED] sholden]$ ENVAR=value
[EMAIL PROTECTED] sholden]$ export ENVAR
[EMAIL PRO
David Bear wrote:
How does one query the python environment, ie pythonhome, pythonpath,
etc.
also, are there any HOWTO's on keeping multiple versions of python
happy?
In general, (and in this case) the answer is system-specific.
You need to explain (A) what operating system, and (B) what you
mean
David Bear wrote:
How does one query the python environment, ie pythonhome
sys.prefix
> pythonpath
sys.path
etc.
sys.etc
also, are there any HOWTO's on keeping multiple versions of python
happy?
I think it is sufficiently trivial that none is needed. Just make sure
the distributions are installed