aboutsummaryrefslogtreecommitdiffstats
path: root/launch.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-29 15:33:29 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-09-29 15:33:29 +0000
commitdc1ee79e9663227bc165a6d063b38b06f09a2964 (patch)
tree425c36155cf2c5f625d423e01d6f255eb1460373 /launch.py
parent8a50371e4e169c67e4dc4305cad0714257429c7a (diff)
downloadstable-diffusion-webui-gfx803-dc1ee79e9663227bc165a6d063b38b06f09a2964.tar.gz
stable-diffusion-webui-gfx803-dc1ee79e9663227bc165a6d063b38b06f09a2964.tar.bz2
stable-diffusion-webui-gfx803-dc1ee79e9663227bc165a6d063b38b06f09a2964.zip
added --exit for notebooks
Diffstat (limited to 'launch.py')
-rw-r--r--launch.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/launch.py b/launch.py
index b2732a4d..ad41ee41 100644
--- a/launch.py
+++ b/launch.py
@@ -130,6 +130,9 @@ run_pip(f"install -r {requirements_file}", "requirements for Web UI")
sys.argv += args
+if "--exit" in args:
+ print("Exiting because of --exit argument")
+ exit(0)
def start_webui():
print(f"Launching Web UI with arguments: {' '.join(sys.argv[1:])}")