Set Windows Environment Variable

Fuzzyman fuzzyman at gmail.com
Thu Mar 30 08:05:06 EST 2006


Hello all,

I would like to set a Windows Environment variable for another
(non-child) process.

This means that the following *doesn't* work : ::

    os.environ['NAME'] = value

In the ``win32api`` package there is a ``GetEnvironmentVariable``
function, but no ``SetEnvironmentVariable``. Any options ?

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml




More information about the Python-list mailing list