From 1f3d60f8b4ed77205e665d9f088dcd7803c2636e Mon Sep 17 00:00:00 2001 From: andrewtvuong Date: Fri, 3 May 2024 22:30:44 -0700 Subject: [PATCH] Set output default to subfolder of current date "%m-%d-%Y" to help better organize output. --- folder_paths.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/folder_paths.py b/folder_paths.py index 489795002..67fe722d5 100644 --- a/folder_paths.py +++ b/folder_paths.py @@ -242,9 +242,10 @@ def get_save_image_path(filename_prefix, output_dir, image_width=0, image_height input = input.replace("%height%", str(image_height)) return input + current_date = time.strftime("%m-%d-%Y") filename_prefix = compute_vars(filename_prefix, image_width, image_height) - subfolder = os.path.dirname(os.path.normpath(filename_prefix)) + subfolder = current_date filename = os.path.basename(os.path.normpath(filename_prefix)) full_output_folder = os.path.join(output_dir, subfolder)