diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-10-02 09:47:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-02 09:47:02 +0000 |
commit | 362675e75bf4b3826af3ccff1f4fc458d85a0e0a (patch) | |
tree | d83d8b7f5e3dac9688162e1ad65d3b20b288175b | |
parent | e3c849da0686377296b2276c6981179a11941586 (diff) | |
parent | 6ab0b65ed15730f590a3e530f00a2047f582b488 (diff) | |
download | stable-diffusion-webui-gfx803-362675e75bf4b3826af3ccff1f4fc458d85a0e0a.tar.gz stable-diffusion-webui-gfx803-362675e75bf4b3826af3ccff1f4fc458d85a0e0a.tar.bz2 stable-diffusion-webui-gfx803-362675e75bf4b3826af3ccff1f4fc458d85a0e0a.zip |
Merge pull request #13469 from PermissionDenied7335/master
I found a code snippet in webui.sh that disables python venv and moved it to the appropriate location
-rwxr-xr-x | webui.sh | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -4,12 +4,6 @@ # change the variables in webui-user.sh instead # ################################################# - -use_venv=1 -if [[ $venv_dir == "-" ]]; then - use_venv=0 -fi - SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) @@ -28,6 +22,12 @@ then source "$SCRIPT_DIR"/webui-user.sh fi +# If $venv_dir is "-", then disable venv support +use_venv=1 +if [[ $venv_dir == "-" ]]; then + use_venv=0 +fi + # Set defaults # Install directory without trailing slash if [[ -z "${install_dir}" ]] |