Relocate python wrapper

This commit is contained in:
Valentin Niess
2022-06-12 18:37:52 +02:00
parent 0097c4d942
commit 61fe3cedf9
7 changed files with 62 additions and 40 deletions

View File

@@ -1,18 +1,10 @@
{{ shebang }}
# If running from an extracted image, then export ARGV0 and APPDIR
# If running from an extracted image, then export APPDIR
if [ -z "${APPIMAGE}" ]; then
export ARGV0=$0
self="$(readlink -f -- $0)"
here="${self%/*}"
export APPDIR="${APPDIR:-${here}}"
export APPDIR="${self%/*}"
fi
# Resolve the calling command (preserving symbolic links).
export APPIMAGE_COMMAND="$(command -v -- $ARGV0)"
{{ tcltk-env }}
{{ cert-file }}
# Call the entry point
# Call the application entry point
{{ entrypoint }}