From 94276cc5cd3bd07de0b6941878bb9699e71b090e Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Tue, 11 Jun 2024 13:20:32 -0400 Subject: [PATCH] fix unix launcher to use python from venv --- webui.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/webui.sh b/webui.sh index b8bd757a6..b6ae67847 100755 --- a/webui.sh +++ b/webui.sh @@ -102,12 +102,12 @@ elif [[ ! -z "${IPEXRUN}" ]] && [ ${IPEXRUN}="True" ] && [ -x "$(command -v ipex then echo "Launch: ipexrun" exec ipexrun --multi-task-manager 'taskset' --memory-allocator 'jemalloc' launch.py "$@" +elif [[ -f "${venv_dir}/bin/python3" ]] +then + PYTHON="${venv_dir}/bin/python3" + echo "Launch: ${PYTHON}" + exec "${PYTHON}" launch.py "$@" else - # use python from env variable if set otherwise look it up now so it gets venv python - if [[ -z "${PYTHON_ENV}" ]] - then - PYTHON=`which python3` - fi echo "Launch: ${PYTHON}" exec "${PYTHON}" launch.py "$@" fi