diff options
author | CookieHCl <nhc7502@snu.ac.kr> | 2022-10-16 13:03:18 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-16 13:36:06 +0000 |
commit | adc0ea74e1ee9791f15c3a74bc6c5ad789e10d17 (patch) | |
tree | 899c1bcbfd6439735cb94f3d65e0bf5069ebfee3 | |
parent | c9836279f58461e04c1dda0a86e718f8bd3f41e4 (diff) | |
download | stable-diffusion-webui-gfx803-adc0ea74e1ee9791f15c3a74bc6c5ad789e10d17.tar.gz stable-diffusion-webui-gfx803-adc0ea74e1ee9791f15c3a74bc6c5ad789e10d17.tar.bz2 stable-diffusion-webui-gfx803-adc0ea74e1ee9791f15c3a74bc6c5ad789e10d17.zip |
Better readablity of logs
-rw-r--r-- | modules/images_history.py | 2 | ||||
-rw-r--r-- | modules/ui.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/images_history.py b/modules/images_history.py index e6284142..e06e07bf 100644 --- a/modules/images_history.py +++ b/modules/images_history.py @@ -31,7 +31,7 @@ def get_recent_images(dir_name, page_index, step, image_index, tabname): image_list = traverse_all_files(dir_name, image_list) image_list = sorted(image_list, key=lambda file: -os.path.getctime(os.path.join(dir_name, file))) else: - print(f"ERROR: {dir_name} is not a directory. Check the path in the settings.", file=sys.stderr) + print(f'ERROR: "{dir_name}" is not a directory. Check the path in the settings.', file=sys.stderr) num = 48 if tabname != "extras" else 12 max_page_index = len(image_list) // num + 1 page_index = max_page_index if page_index == -1 else page_index + step diff --git a/modules/ui.py b/modules/ui.py index fa73627a..7b0d5a92 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1395,7 +1395,7 @@ def create_ui(wrap_gradio_gpu_call): def open_folder(f):
if not os.path.exists(f):
- print(f"{f} doesn't exist. After you create an image, the folder will be created.")
+ print(f'Folder "{f}" does not exist. After you create an image, the folder will be created.')
return
elif not os.path.isdir(f):
print(f"""
|