diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-06-05 17:52:05 +0000 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-06-05 17:52:05 +0000 |
commit | c2808f3040babbb5b9456d15aa2a9354c1c64d23 (patch) | |
tree | 092b604f25cd61760fb75ecb2c67bce1e1f58ff7 | |
parent | eaace155cebeb4e713fc6f232261eeed6b958736 (diff) | |
download | stable-diffusion-webui-gfx803-c2808f3040babbb5b9456d15aa2a9354c1c64d23.tar.gz stable-diffusion-webui-gfx803-c2808f3040babbb5b9456d15aa2a9354c1c64d23.tar.bz2 stable-diffusion-webui-gfx803-c2808f3040babbb5b9456d15aa2a9354c1c64d23.zip |
SD_WEBUI_RESTARTING
-rw-r--r-- | modules/launch_utils.py | 2 | ||||
-rw-r--r-- | webui.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/launch_utils.py b/modules/launch_utils.py index 59008385..609a181e 100644 --- a/modules/launch_utils.py +++ b/modules/launch_utils.py @@ -247,7 +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_DISABLE_AUTOLAUNCH', '1')
+ os.environ.setdefault('SD_WEBUI_RESTARTING ', '1')
except OSError:
pass
@@ -396,7 +396,7 @@ def webui(): ssl_verify=cmd_opts.disable_tls_verify,
debug=cmd_opts.gradio_debug,
auth=gradio_auth_creds,
- inbrowser=cmd_opts.autolaunch and os.getenv('SD_WEBUI_DISABLE_AUTOLAUNCH') != '1',
+ inbrowser=cmd_opts.autolaunch and os.getenv('SD_WEBUI_RESTARTING ') != '1',
prevent_thread_lock=True,
allowed_paths=cmd_opts.gradio_allowed_path,
app_kwargs={
|