mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-25 15:03:55 +01:00
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:
parent
275d33d78b
commit
18e0fe0d28
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue