shithub: riscv

Download patch

ref: 8bf367498314bc92715f0a3f00bc9a5fe915eec5
parent: 73bf5ccc2839d2a4ccc00fd8f5cad6c10892e608
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]