diff options
author | Rahul Kolasseri <rahul.kolasseri@gmail.com> | 2022-09-20 11:56:07 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-20 14:23:26 +0000 |
commit | c2775528c9e5336b37987832795621fa49ff97d3 (patch) | |
tree | 8c3d83ce244fae5a6dfabdafc2d21292ceccd288 /launch.py | |
parent | f2ad00bc8ef995c32ff40d5db58fc6ae8d50d916 (diff) | |
download | stable-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.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -123,5 +123,5 @@ def start_webui(): import webui
webui.webui()
-
-start_webui()
+if __name__ == "__main__":
+ start_webui()
|