python-wrapper.sh 415 B

12345678910111213141516171819
  1. {{ shebang }}
  2. # If running from an extracted image, then export ARGV0 and APPDIR
  3. if [ -z "${APPIMAGE}" ]; then
  4. export ARGV0=$0
  5. self="$(readlink -f -- $0)"
  6. here="${self%/*}"
  7. tmp="${here%/*}"
  8. export APPDIR="${tmp%/*}"
  9. fi
  10. # Resolve the calling command (preserving symbolic links).
  11. export APPIMAGE_COMMAND="$(command -v -- $ARGV0)"
  12. {{ tcltk-env }}
  13. {{ cert-file }}
  14. # Call Python
  15. {{ entrypoint }}