aboutsummaryrefslogtreecommitdiffstats
path: root/launch.py
diff options
context:
space:
mode:
authorRahul Kolasseri <rahul.kolasseri@gmail.com>2022-09-20 11:56:07 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-09-20 14:23:26 +0000
commitc2775528c9e5336b37987832795621fa49ff97d3 (patch)
tree8c3d83ce244fae5a6dfabdafc2d21292ceccd288 /launch.py
parentf2ad00bc8ef995c32ff40d5db58fc6ae8d50d916 (diff)
downloadstable-diffusion-webui-gfx803-c2775528c9e5336b37987832795621fa49ff97d3.tar.gz
stable-diffusion-webui-gfx803-c2775528c9e5336b37987832795621fa49ff97d3.tar.bz2
stable-diffusion-webui-gfx803-c2775528c9e5336b37987832795621fa49ff97d3.zip
added __name__ == __main__ to launch.py so it can be imported without launching the webUI
Diffstat (limited to 'launch.py')
-rw-r--r--launch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/launch.py b/launch.py
index 197e656b..a357b917 100644
--- a/launch.py
+++ b/launch.py
@@ -123,5 +123,5 @@ def start_webui():
import webui
webui.webui()
-
-start_webui()
+if __name__ == "__main__":
+ start_webui()