title: command line arguments with subprocess.Popen
body: <p>I've GUI where if i press a button "process" calls a python script which needs one command line argument. so i used subprocess.Popen like this:</p>
  
  <pre><code>subprocess.Popen(['chbif /home/vnandak/Work/VS30_Cradle/SV000_sv000/cradle_vs30_dkaplus01_fwd_dl140606_fem140704_v00_mod1.bif'],shell=True)
  </code></pre>
  
  <p>chbif is the alias for the .py script</p>
  
  <p>This works fine but now i want to choose a file of my choice by browsing using askfilename() func from tkFileDailog() module. how can i do this?</p>
  
  <p>I thought of doing it like this:</p>
  
  <pre><code>def bifcall():
          name13= askopenfilename()
          subprocess.Popen(['chbif', name13],shell=True)
  </code></pre>
  
  <p>But if i use this it throws an error saying that it does'nt have one more command line argument which is the file name</p>