diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-06-05 17:21:42 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-06-05 17:21:42 +0200 |
commit | 8bf367498314bc92715f0a3f00bc9a5fe915eec5 (patch) | |
tree | 69bbb29637245a6937b436dda1d2c5aea6cffc8d /sys/lib | |
parent | 73bf5ccc2839d2a4ccc00fd8f5cad6c10892e608 (diff) |
make python subprocess module work with ape/sh
Diffstat (limited to 'sys/lib')
-rw-r--r-- | sys/lib/python/subprocess.py | 5 |
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] |