title: Interface for modifying Windows environment variables from Python
body: <p>How can I persistently modify the Windows environment variables from a Python script? (it's the setup.py script)</p>
  
  <p>I'm looking for a standard function or module to use for this. I'm already familiar with the <a href="http://code.activestate.com/recipes/416087/" rel="noreferrer">registry way of doing it</a>, but any comments regarding that are also welcome.</p>