Re: popening a process in a specific working directory

2008-03-05 Thread Sion Arrowsmith
Michael Torrie <[EMAIL PROTECTED]> 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 -- [EMAIL PROTECTED] -- http://www.chaos.org

popening a process in a specific working directory

2008-03-04 Thread Michael Torrie
I have a small multi-threaded program that spawns a number of threads that each spawn a particular process in a particular temporary directory. My problem is that using os.chdir to change the working directory before popening the process doesn't always work because another thread might change the