change windows system path from cygwin python?

Peter Hansen peter at engcorp.com
Wed Dec 15 21:57:03 CET 2004


Fredrik Lundh wrote:
> <gry at ll.mit.edu> wrote:
>>How can a python, or even a .bat script modify the system PATH?
>>It doesn't appear to be in the registry.
> 
> did you look under
> HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment

And see also this helpful recipe:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/55993



More information about the Python-list mailing list