diff --git a/backend/python/common/libbackend.sh b/backend/python/common/libbackend.sh index 5c5805b9..e8dfea03 100644 --- a/backend/python/common/libbackend.sh +++ b/backend/python/common/libbackend.sh @@ -148,13 +148,13 @@ function startBackend() { ensureVenv if [ ! -z ${BACKEND_FILE} ]; then - python ${BACKEND_FILE} $@ + exec python ${BACKEND_FILE} $@ elif [ -e "${MY_DIR}/server.py" ]; then - python ${MY_DIR}/server.py $@ + exec python ${MY_DIR}/server.py $@ elif [ -e "${MY_DIR}/backend.py" ]; then - python ${MY_DIR}/backend.py $@ + exec python ${MY_DIR}/backend.py $@ elif [ -e "${MY_DIR}/${BACKEND_NAME}.py" ]; then - python ${MY_DIR}/${BACKEND_NAME}.py $@ + exec python ${MY_DIR}/${BACKEND_NAME}.py $@ fi } @@ -210,4 +210,4 @@ function checkTargets() { echo false } -init \ No newline at end of file +init