mirror of
https://github.com/pulb/mailnag.git
synced 2026-05-07 12:57:11 +02:00
added optional shell arg to start_subprocess function
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user