How do you stop the output from subprocess.Popen from being output? Printing can sometimes be slow if there is a great deal of it.
If you want to totally throw it away:
import subprocess import os with open(os.devnull, 'w') as fp: cmd = subprocess.Popen(("[command]",), stdout=fp)
If you are using Python 2.5, you will need from __future__ import with_statement, or just don't use with.
from __future__ import with_statement
with