ensure use of python from venv

This commit is contained in:
viking1304 2024-06-30 11:44:06 +02:00
parent a30b19dd55
commit 6ddcd8914b
1 changed files with 2 additions and 0 deletions

View File

@ -217,6 +217,8 @@ then
if [[ -f "${venv_dir}"/bin/activate ]]
then
source "${venv_dir}"/bin/activate
# ensure use of python from venv
python_cmd="${venv_dir}"/bin/python
else
printf "\n%s\n" "${delimiter}"
printf "\e[1m\e[31mERROR: Cannot activate python venv, aborting...\e[0m"