Better readablity of logs

This commit is contained in:
CookieHCl 2022-10-16 22:03:18 +09:00 committed by AUTOMATIC1111
parent c9836279f5
commit adc0ea74e1
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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"""