change windows system path from cygwin python?
Harlin Seritt
hps3 at seritt.org
Wed Dec 15 13:38:14 EST 2004
gry at ll.mit.edu wrote:
> [Windows XP Pro, cygwin python 2.4, *nix hacker, windows newbie]
>
> 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.
If you're just wanting to add a path to the system environments you can do:
"set path=c:\path\to\whatever" # As a line in a Batch file
--
Harlin Seritt
More information about the Python-list
mailing list