git: 9front

Download patch

ref: a3a1c80af4c0f641587d20f62e005daae4a56c3c
parent: 248a21b64140dc1083c6656f27c4f2eadae660ef
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Jun 5 13:21:42 EDT 2017

make python subprocess module work with ape/sh

--- a/sys/lib/python/subprocess.py
+++ b/sys/lib/python/subprocess.py
@@ -991,7 +991,10 @@
                 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]
--