From d131a37ac98a51fdf6ff7a310261df3c59f5c586 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Fri, 26 Feb 2016 18:52:43 +0100 Subject: [PATCH] No new processes needed on IronPython --- waflib/Utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waflib/Utils.py b/waflib/Utils.py index cbbbdadb..5e7c6f1b 100644 --- a/waflib/Utils.py +++ b/waflib/Utils.py @@ -831,7 +831,7 @@ def get_process(): return get_process() def run_process(cmd, kwargs, cargs={}): - if os.name == 'java' or not kwargs.get('stdout', None) or not kwargs.get('stderr', None): + if os.name == 'java' or sys.platform == 'cli' or not kwargs.get('stdout', None) or not kwargs.get('stderr', None): proc = subprocess.Popen(cmd, **kwargs) if kwargs.get('stdout', None) or kwargs.get('stderr', None): out, err = proc.communicate(**cargs) @@ -842,7 +842,7 @@ def run_process(cmd, kwargs, cargs={}): return status, out, err else: proc = get_process() - obj = base64.b64encode(cPickle.dumps([cmd, kwargs, cargs])) #.encode() + obj = base64.b64encode(cPickle.dumps([cmd, kwargs, cargs])) proc.stdin.write(obj) proc.stdin.write('\n'.encode()) proc.stdin.flush()