summaryrefslogtreecommitdiff
path: root/sys/lib/python
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-06-05 17:21:42 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2017-06-05 17:21:42 +0200
commit8bf367498314bc92715f0a3f00bc9a5fe915eec5 (patch)
tree69bbb29637245a6937b436dda1d2c5aea6cffc8d /sys/lib/python
parent73bf5ccc2839d2a4ccc00fd8f5cad6c10892e608 (diff)
make python subprocess module work with ape/sh
Diffstat (limited to 'sys/lib/python')
-rw-r--r--sys/lib/python/subprocess.py5
1 files changed, 4 insertions, 1 deletions
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]