make python subprocess module work with ape/sh
This commit is contained in:
parent
73bf5ccc28
commit
8bf3674983
1 changed files with 4 additions and 1 deletions
|
@ -991,7 +991,10 @@ class Popen(object):
|
||||||
args = list(args)
|
args = list(args)
|
||||||
|
|
||||||
if shell:
|
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:
|
if executable is None:
|
||||||
executable = args[0]
|
executable = args[0]
|
||||||
|
|
Loading…
Reference in a new issue