change windows system path from cygwin python?

Fredrik Lundh fredrik at pythonware.com
Wed Dec 15 20:01:58 CET 2004


<gry at ll.mit.edu> wrote:

> I want to write some kind of install script for my python app that
> will add c:\cygwin\usr\bin to the system path.  I don't want
> to walk around to 50 PC's and twiddle through the GUI to:
>
> My Computer --> Control Panel --> System --> Advanced --> Environment
>
>
> 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

?

</F> 






More information about the Python-list mailing list