Set Windows Environment Variable

Fuzzyman fuzzyman at
Thu Mar 30 15:05:06 CEST 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 ?


More information about the Python-list mailing list