mirror of
https://github.com/niess/python-appimage.git
synced 2025-07-21 21:01:15 +02:00
20 lines
445 B
Bash
Executable File
20 lines
445 B
Bash
Executable File
{{ shebang }}
|
|
|
|
# If running from an extracted image, then export ARGV0 and APPDIR
|
|
if [ -z "${APPIMAGE}" ]; then
|
|
export ARGV0="$0"
|
|
|
|
self=$(readlink -f -- "$0") # Protect spaces (issue 55)
|
|
here="${self%/*}"
|
|
tmp="${here%/*}"
|
|
export APPDIR="${tmp%/*}"
|
|
fi
|
|
|
|
# Resolve the calling command (preserving symbolic links).
|
|
export APPIMAGE_COMMAND=$(command -v -- "$ARGV0")
|
|
{{ tcltk-env }}
|
|
{{ cert-file }}
|
|
|
|
# Call Python
|
|
{{ entrypoint }}
|