Re: change windows system path from cygwin python?

2004-12-16 Thread gry
The _winreg api looks helpful; unfortunately, I'm trying to stick to
what can be got
from the cygwin install -- no _winreg.  Simplicity of installation is
quite important.
(I'm using cygwin to get the xfree86 X-server, which is the whole point
of this exercise)

I have found the cygwin command-line regtool for munging the
registry, so I plan
to use that via os.popen.
Thanks all for pointing me to the right place in the registry!

-- 
http://mail.python.org/mailman/listinfo/python-list


change windows system path from cygwin python?

2004-12-15 Thread gry
[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.

-- 
http://mail.python.org/mailman/listinfo/python-list