Ver Fonte

Uppercase for env var LAUNCH_SCRIPT

Andrew Savchyn há 2 anos atrás
pai
commit
d18daafb8b
2 ficheiros alterados com 4 adições e 4 exclusões
  1. 1 1
      webui-user.sh
  2. 3 3
      webui.sh

+ 1 - 1
webui-user.sh

@@ -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"

+ 3 - 3
webui.sh

@@ -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
@@ -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}"