Modifying the environment

Daley, MarkX markx.daley at intel.com
Thu May 25 17:56:38 CEST 2000


Hello, everyone!

Here is a subject someone has to have covered at one time.  How do I modify
the environment using Python in such a way that the changes stay after the
Python script executes?  I'm sure there's a way, I just haven't uncovered it
yet.  If I use os.environ or os.putenv(), the changes only last as long as I
remain in Python.  Even the DOS window protects it's own copy of the
environment!

- Mark





More information about the Python-list mailing list