mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
ensure use of python from venv
This commit is contained in:
parent
a30b19dd55
commit
6ddcd8914b
2
webui.sh
2
webui.sh
@ -217,6 +217,8 @@ then
|
|||||||
if [[ -f "${venv_dir}"/bin/activate ]]
|
if [[ -f "${venv_dir}"/bin/activate ]]
|
||||||
then
|
then
|
||||||
source "${venv_dir}"/bin/activate
|
source "${venv_dir}"/bin/activate
|
||||||
|
# ensure use of python from venv
|
||||||
|
python_cmd="${venv_dir}"/bin/python
|
||||||
else
|
else
|
||||||
printf "\n%s\n" "${delimiter}"
|
printf "\n%s\n" "${delimiter}"
|
||||||
printf "\e[1m\e[31mERROR: Cannot activate python venv, aborting...\e[0m"
|
printf "\e[1m\e[31mERROR: Cannot activate python venv, aborting...\e[0m"
|
||||||
|
Loading…
Reference in New Issue
Block a user