aboutsummaryrefslogtreecommitdiff
path: root/webui.sh
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-10-02 12:47:02 +0300
committerGitHub <noreply@github.com>2023-10-02 12:47:02 +0300
commit362675e75bf4b3826af3ccff1f4fc458d85a0e0a (patch)
treed83d8b7f5e3dac9688162e1ad65d3b20b288175b /webui.sh
parente3c849da0686377296b2276c6981179a11941586 (diff)
parent6ab0b65ed15730f590a3e530f00a2047f582b488 (diff)
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
Diffstat (limited to 'webui.sh')
-rwxr-xr-xwebui.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/webui.sh b/webui.sh
index 6652af97..08911469 100755
--- a/webui.sh
+++ b/webui.sh
@@ -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}" ]]