To launch programs from my Python-scripts, I\'m using the following method:
def execute(command):
process = subprocess.Popen(command, shell=True, stdout=s
There is actually a really simple way to do this when you just want to print the output:
import subprocess
import sys
def execute(command):
subprocess.check_call(command, stdout=sys.stdout, stderr=subprocess.STDOUT)
Here we're simply pointing the subprocess to our own stdout, and using existing succeed or exception api.