1 2 3 4 5 6 7
#!/bin/bash set -euo pipefail _APPDIR="/usr/lib/@appname@" _RUNNAME="${_APPDIR}/@runname@" export PATH="${_APPDIR}:${PATH}" cd "${_APPDIR}" || { echo "Failed to change directory to ${_APPDIR}"; exit 1; } exec python "${_RUNNAME}" "$@" || exit $?