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

15 lines
290 B

  1. #!/bin/sh
  2. case "${0##*/}" in
  3. pywrap.sh) arg1="";;
  4. *) arg1="$0.py" ;;
  5. esac
  6. for bin in python python3; do
  7. case "$($bin -V 2>&1)" in
  8. "Python 3"*) exec $bin $arg1 "$@" ;;
  9. esac
  10. done
  11. echo "Unable to find a Python 3.x interpreter for executing ${arg1:+$arg1 }$* !" >&2
  12. exit 1