From 8bf367498314bc92715f0a3f00bc9a5fe915eec5 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 5 Jun 2017 17:21:42 +0200 Subject: [PATCH] make python subprocess module work with ape/sh --- sys/lib/python/subprocess.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/lib/python/subprocess.py b/sys/lib/python/subprocess.py index aeca23d1a..33a3bc226 100644 --- a/sys/lib/python/subprocess.py +++ b/sys/lib/python/subprocess.py @@ -991,7 +991,10 @@ class Popen(object): args = list(args) if shell: - args = ["/bin/sh", "-c"] + args + if sys.platform == 'plan9': + args = ["/bin/ape/sh", "-c"] + args + else: + args = ["/bin/sh", "-c"] + args if executable is None: executable = args[0]