Your confirmation is required to join the Python-list mailing list

Allan Yuan velvetyuan at gmail.com
Mon May 4 18:14:28 CEST 2009


Hi,
I just wanna know how to set SYSTEM variables and USER variables of windows,
but got no way.

Firstly I thought "os.environ + os.system" may work well, but found no way
to let "os.environ" run to retrive USER variables.

Then I tried win32api, finding the GetEnvironmentVariables() mixing SYSTEM
and USER variables up, and SetEnvironmentVariables() failing to add
variables.

Could you help me, please?
Thanks a lot.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090505/07276079/attachment.html>


More information about the Python-list mailing list