From b51225b216535a90657c79442b905bfd3e85e2e7 Mon Sep 17 00:00:00 2001 From: Patrick Ulbrich Date: Mon, 29 Jul 2013 20:33:04 +0200 Subject: [PATCH] added optional shell arg to start_subprocess function --- Mailnag/common/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mailnag/common/utils.py b/Mailnag/common/utils.py index fa7fb0e..64cc976 100644 --- a/Mailnag/common/utils.py +++ b/Mailnag/common/utils.py @@ -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)