2 ms·
It really only condenses 2 calls down to one, but since I never change some of the parameters, it saves me a bit of time. def run( command ): process = s
by phamilton 15y ago
It really only condenses 2 calls down to one, but since I never change some of the parameters, it saves me a bit of time.
def run( command ):
process = subprocess.Popen(
command,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE
)
return process.communicate()