title: Is it possible to set an environment variable from Python permanently?
body: <p>Using <code>os</code> module I can get the values of the environment variables. For example:</p>
  
  <pre><code>os.environ['HOME']
  </code></pre>
  
  <p>However, I cannot set the environment variables:</p>
  
  <pre><code>os.environ['BLA'] = "FOO"
  </code></pre>
  
  <p>It works in the current session of the program but when I python program is finished, I do not see that it changed (or set) values of the environment variables. Is there a way to do it from Python?</p>