Skip to content

Commit

Permalink
Merge pull request #16116 from viking1304/ensure-venv-use
Browse files Browse the repository at this point in the history
Ensure use of python from venv on Mac and Linux
  • Loading branch information
AUTOMATIC1111 committed Jul 6, 2024
2 parents 372a8e0 + 6ddcd89 commit 76a19c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 76a19c0

Please sign in to comment.