os.environ['http_proxy'] not working
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/263005/is-it-possible-to-change-the-environment-of-a-parent-process-in-python">Is it possible to change the Environment of a parent process in python?</a>  </p>
</blockquote>



<p>I am using python 2.4.3. I tried to set my http_proxy variable. Please see the below example and please let me know what is wrong.
the variable is set according to python, however when i get out of the interactive mode. The http_proxy variable is still not set. I have tried it in a script and also tried it with other variables but i get the same result. No variable is actually set up in the OS. </p>

<pre><code>Python 2.4.3 (#1, May  1 2012, 13:52:57)
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import os
&gt;&gt;&gt; os.environ['http_proxy']="abcd"
&gt;&gt;&gt; os.system("echo $http_proxy")
abcd
0
&gt;&gt;&gt; print os.environ['http_proxy']
abcd
&gt;&gt;&gt;
user@host~$ echo $http_proxy

user@host~$
</code></pre>
