aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-06-05 20:57:31 +0300
committerGitHub <noreply@github.com>2023-06-05 20:57:31 +0300
commit0895c2369cdb795acd0de072acf426c4b54fedc5 (patch)
treea2755d72540813fb951228959e892aedbd1e8ab5 /modules
parente89a248e2ef7a11d7e5026eef221e2ef759a938f (diff)
parentc2808f3040babbb5b9456d15aa2a9354c1c64d23 (diff)
Merge pull request #11037 from AUTOMATIC1111/restart-autolaunch
fix rework-disable-autolaunch for new restart method
Diffstat (limited to 'modules')
-rw-r--r--modules/launch_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/launch_utils.py b/modules/launch_utils.py
index af8d8b37..609a181e 100644
--- a/modules/launch_utils.py
+++ b/modules/launch_utils.py
@@ -247,6 +247,7 @@ def prepare_environment():
try:
# the existance of this file is a signal to webui.sh/bat that webui needs to be restarted when it stops execution
os.remove(os.path.join(script_path, "tmp", "restart"))
+ os.environ.setdefault('SD_WEBUI_RESTARTING ', '1')
except OSError:
pass