Skip to content

Commit

Permalink
Uppercase for env var LAUNCH_SCRIPT
Browse files Browse the repository at this point in the history
  • Loading branch information
Scorpil authored and AUTOMATIC1111 committed Sep 30, 2022
1 parent fcfe2e9 commit d18daaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion webui-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export COMMANDLINE_ARGS=""
#venv_dir="venv"

# script to launch to start the app
#export launch_script="launch.py"
#export LAUNCH_SCRIPT="launch.py"

# install command for torch
#export TORCH_COMMAND="pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113"
Expand Down
6 changes: 3 additions & 3 deletions webui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ then
venv_dir="venv"
fi

if [[ -z "${launch_script}" ]]
if [[ -z "${LAUNCH_SCRIPT}" ]]
then
launch_script="launch.py"
LAUNCH_SCRIPT="launch.py"
fi

# Disable sentry logging
Expand Down Expand Up @@ -138,4 +138,4 @@ fi
printf "\n%s\n" "${delimiter}"
printf "Launching launch.py..."
printf "\n%s\n" "${delimiter}"
"${python_cmd}" "${launch_script}"
"${python_cmd}" "${LAUNCH_SCRIPT}"

0 comments on commit d18daaf

Please sign in to comment.