title: Python: subprocess.Popen with parameters and path
body: <p>I need to execute this line in my python script:</p>
  
  <pre><code>p = subprocess.Popen(["python ~/mrjobScript.py ~/jobs/"+date+"/input/* &gt; ~/jobs/"+date+"/output/output-"+domain+".log","--domain "+domain],stdout=subprocess.PIPE, shell=True)
  </code></pre>
  
  <p>However the --domain switch should come right after the mrjobScript.py. How to achieve?</p>