added optional shell arg to start_subprocess function

This commit is contained in:
Patrick Ulbrich
2013-07-29 20:33:04 +02:00
parent da05dd8656
commit b51225b216

View File

@@ -88,9 +88,9 @@ def shutdown_existing_instance():
sys.stdout.write('FAILED\n')
def start_subprocess(args, callback = None):
def start_subprocess(args, shell = False, callback = None):
def thread():
p = subprocess.Popen(args)
p = subprocess.Popen(args, shell = shell)
retcode = p.wait()
if callback != None:
callback(retcode)