Hi all,<br><br>I am trying to use Popen to run a script in a certain directory. I am using the cwd argument.  I am on Mac OS 10.5/10.6<br><br>My test script is simply:<br>from subprocess import Popen, PIPE<br>p = popen(&quot;pwd&quot;, stdout=PIPE, shell=True, cwd=&quot;/etc&quot;)<br>
p.wait()<br>p.communicate()[0]<br><br>and it outputs <br>/private/etc<br><br>The same thing happens with os.chdir<br>I google a bunch with no luck, anyone have any input?<br><br>thanks,<br>Dan<br>