Environment variables

Gordon McMillan gmcm at hypernet.com
Fri Dec 3 08:18:33 EST 1999


Kevin Cazabon on making changes to environment vars:

> I ran into the same thing...  It's not too hard on NT, as you can
> set most of them through the registry using Mark Hammonds Win32
> Extensions.  For Win98, I've been adding the changes to the
> autoexec.bat and forcing a reboot.
> 
> One thing I've found though:  changing things in the NT registry
> works, but the changes don't actually become effective
> immediately.  I'd recommend a reboot to be safe after setting up
> your changes.

Actually, they do. Just not in already running cmd.exes. You 
can use os.putenv to affect the environment of the cmd.exe 
you're running in, but there's nothing you can do about other 
already existing ones.



- Gordon




More information about the Python-list mailing list