title: python run csh command
body: <p>recently, I want to use python script to set environment in linux.This is one line of my code:</p>
  
  <pre><code>p = subprocess.call(['/bin/csh', '-c', "source setup.csh"])
  </code></pre>
  
  <p>My setup.csh file is below:</p>
  
  <pre><code>add questa10.2b
  add ds5-2013.06
  setenv MODELSIM modelsim.ini
  </code></pre>
  
  <p>But when I run my python, it shows that the files have sourced on screen, but it turns out I have to type myself on command line. </p>
  
  <p>How could I solve these problem? Can any one please help me with this?</p>