subprocess call is not waiting.

Wanderer wanderer at dialup4less.com
Fri Sep 14 13:38:14 EDT 2012


On Friday, September 14, 2012 8:22:44 AM UTC-4, pauls... at gmail.com wrote:
> os.system worked fine, and I found something in another section of code that was causing the "Too many open errors." (I was fooled, because output from subprocess call didn't seem to be coming out until the open files error.
> 
> 
> 
> I'll go back and play with subprocess.call more, since os.system works. That's interesting about using shlex at run time. Is that just for the sake of computational cost?

I never got the hang of subprocess, either. I ended up wrapping os.system in a python file and using subprocess to call that with:

subprocess.Popen([sys.executable, 'Wrapper.py'])

This works for me. I'm using Windows 7.



More information about the Python-list mailing list