You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Lib-subprocess.py.patch 663 B

1234567891011121314
  1. diff -u -r ../Python-3.7.1/Lib/subprocess.py ./Lib/subprocess.py
  2. --- ../Python-3.7.1/Lib/subprocess.py 2018-10-20 06:04:19.000000000 +0000
  3. +++ ./Lib/subprocess.py 2018-10-20 20:17:50.157206343 +0000
  4. @@ -1389,9 +1389,7 @@
  5. args = list(args)
  6. if shell:
  7. - # On Android the default shell is at '/system/bin/sh'.
  8. - unix_shell = ('/system/bin/sh' if
  9. - hasattr(sys, 'getandroidapilevel') else '/bin/sh')
  10. + unix_shell = ('@TERMUX_PREFIX@/bin/sh')
  11. args = [unix_shell, "-c"] + args
  12. if executable:
  13. args[0] = executable