title: Python, using glob with cwd argument to subprocess.call
body: <p>I want to call a subprocess in python using subprocess.call(), with the 'cwd' argument so that this particular subprocess is executed in a different directory. I don't want to use os.chdir() because for future processes later in the program I want to remain in the original directory from where the program was run.</p>
  
  <p>BUT, I also want to run this particular subprocess on a set of files matching a glob pattern. So for example, I might want to do </p>
  
  <pre><code>subprocess.call(['ls'] + glob('*.txt'), cwd="/my/other/dir/")
  </code></pre>
  
  <p>But of course the glob command doesn't know to look in /my/other/dir, so it fails. How can I do this without using shell=True?</p>