Skip to content

Commit

Permalink
Added an option not to enable venv
Browse files Browse the repository at this point in the history
  • Loading branch information
PermissionDenied7335 committed Oct 2, 2023
1 parent 5ef669d commit 6ab0b65
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions webui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 )


Expand All @@ -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}" ]]
Expand Down

0 comments on commit 6ab0b65

Please sign in to comment.