change windows system path from cygwin python?

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

Fredrik Lundh wrote:
> <gry at> 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:

More information about the Python-list mailing list