Merge pull request #16116 from viking1304/ensure-venv-use

Ensure use of python from venv on Mac and Linux
This commit is contained in:
AUTOMATIC1111
2024-07-06 09:49:34 +03:00
committed by GitHub

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"