mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 12:20:14 +01:00
Relocate python wrapper
This commit is contained in:
19
python_appimage/data/python-wrapper.sh
Executable file
19
python_appimage/data/python-wrapper.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
{{ shebang }}
|
||||
|
||||
# If running from an extracted image, then export ARGV0 and APPDIR
|
||||
if [ -z "${APPIMAGE}" ]; then
|
||||
export ARGV0=$0
|
||||
|
||||
self="$(readlink -f -- $0)"
|
||||
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 }}
|
||||
Reference in New Issue
Block a user