popening a process in a specific working directory

Sion Arrowsmith siona at chiark.greenend.org.uk
Wed Mar 5 07:23:24 EST 2008


Michael Torrie  <torriem at gmail.com> wrote:
>I'm currently using popen2.Popen4.  Is there a way to properly specify a
>particular working directory when launching a process in python?

Switch to using subprocess.Popen and specify the cwd argument.

-- 
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
   "Frankly I have no feelings towards penguins one way or the other"
        -- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump



More information about the Python-list mailing list