make python subprocess module work with ape/sh

This commit is contained in:
cinap_lenrek 2017-06-05 17:21:42 +02:00
parent 73bf5ccc28
commit 8bf3674983

View file

@ -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]