Andre Walker-Loud wrote: > Hi All, > > lets say I am in Dir A (out of my control because I have submitted a > job to a queuing system) > > and I have a python script which is running in this directory - the > one I submitted to the queue > > what I need to do is have my python script run another executable, > but it must do it from a directory different from the one I am in, it > needs to run in the /scratch/ directory (again not my choice) > > Is this possible, and is it easy?
Use subprocess.Popen() with the cwd argument. Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor