aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authorCookieHCl <nhc7502@snu.ac.kr>2022-10-16 12:59:05 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-16 13:36:06 +0000
commitc9836279f58461e04c1dda0a86e718f8bd3f41e4 (patch)
treea6eab9b355e088eb1f99457cf3cfac9e2420792b /modules/ui.py
parent91235d8008372862b1f232f7bf99da310a5955e4 (diff)
downloadstable-diffusion-webui-gfx803-c9836279f58461e04c1dda0a86e718f8bd3f41e4.tar.gz
stable-diffusion-webui-gfx803-c9836279f58461e04c1dda0a86e718f8bd3f41e4.tar.bz2
stable-diffusion-webui-gfx803-c9836279f58461e04c1dda0a86e718f8bd3f41e4.zip
Only make output dir when creating output
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py
index ee3d0248..fa73627a 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -1394,7 +1394,10 @@ def create_ui(wrap_gradio_gpu_call):
component_dict = {}
def open_folder(f):
- if not os.path.isdir(f):
+ if not os.path.exists(f):
+ print(f"{f} doesn't exist. After you create an image, the folder will be created.")
+ return
+ elif not os.path.isdir(f):
print(f"""
WARNING
An open_folder request was made with an argument that is not a folder.