pkg.sh: Default wrappers installed with log-install -L to Python 3

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2019-03-15 19:05:47 +00:00
commit 18e0fe0d28

View file

@ -641,13 +641,13 @@ install_exe_wrapper()
case $ext in case $ext in
py) py)
cat << EOT | sed 's/^ *|//' > "$tmp" cat << EOT | sed 's/^ *|//' > "$tmp"
|#!/usr/bin/python |#!/usr/bin/python3
| |
|import sys |import sys
|import subprocess |import subprocess
|args=sys.argv |args=sys.argv
|args[0] = "$from" |args[0] = "$from"
|if subprocess.call([ '/usr/bin/python' ] + args) != 0: |if subprocess.call([ '/usr/bin/python3' ] + args) != 0:
| print("subprocess failed") | print("subprocess failed")
| exit(1) | exit(1)
EOT EOT