title: package creation file doesnot take value from .bashrc file
body: <p>I am newbie to python, and for GUIs, I use wxpython.</p>
  
  <p>My Issue is this:</p>
  
  <p>I have to create a debian file for two types of products(say product 1 and product 2).That can be done by running README.package.creation file. For "product1" in ".bashrc" we have to change </p>
  
  <pre><code>                Product = product1 
  </code></pre>
  
  <p>After that we have to do "make clean" in new terminal(otherwise changes in .bashrc will not take effect i.e "product" may not be equal to "product 1" if we dont follow the procedure), then we have to run ./Readme.package.creation.process. In Readme.package.creation then it takes automatically product type as "product 1"
  If I does this manually it will work fine but if i do this through GUI it Readme.package.creation file will not take product type. From python null value will be sent.
  Please help to solve my issue.
  My code is:</p>
  
  <pre><code>      subprocess.call("sed -i '/export PRODUCT/d' .bashrc", shell=True)
        subprocess.call("sed -i '/export BOARD=TYpe/ a\ export PRODUCT=product1' .bashrc", shell=True)
        os.chdir("/home/x/y/z")
        subprocess.call("make clean", shell=True)
        os.chdir("/home/x/main/src/package")
        subprocess.call("sed -i 's/re.build -f -gui -p all/re.build -gui -p all -svn no/' README.package.creation", shell=True)
        subprocess.call("gksu debian", shell=True)
        subprocess.Popen("xfce4-terminal -e 'bash -c \"./README.package.creation -u %s\";sleep 10'" % (str(u_name)),shell=True)
  </code></pre>
  
  <p>How to do after that I have to follow same procedure for Product 2 also</p>
  
  <p>EDIT:
  How about os.environ in python?
  I have tried to change with os.putenv and then os.environ seems like it doesnot work fine.</p>