You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import subprocess
|
|
|
|
def executeProcess(commandSequence):
|
|
process = subprocess.Popen(commandSequence, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
|
output, error = process.communicate()
|
|
return output.decode('utf-8'), error.decode('utf-8'), process.returncode
|