Skip to content

Instantly share code, notes, and snippets.

@silentsudo
Last active October 12, 2024 10:13
Show Gist options
  • Save silentsudo/aca7f9e4122770033b8c129814663962 to your computer and use it in GitHub Desktop.
Save silentsudo/aca7f9e4122770033b8c129814663962 to your computer and use it in GitHub Desktop.
comfyui save image like automatic1111
index 01ae821..bc0668e 100644
--- a/folder_paths.py
+++ b/folder_paths.py
@@ -4,6 +4,7 @@ import os
import time
import mimetypes
import logging
+import datetime
from typing import Set, List, Dict, Tuple, Literal
from collections.abc import Collection
@@ -38,8 +39,8 @@ folder_names_and_paths["hypernetworks"] = ([os.path.join(models_dir, "hypernetwo
folder_names_and_paths["photomaker"] = ([os.path.join(models_dir, "photomaker")], supported_pt_extensions)
folder_names_and_paths["classifiers"] = ([os.path.join(models_dir, "classifiers")], {""})
-
-output_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), "output")
+today = f"{datetime.datetime.now():%Y-%m-%d}"
+output_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), f"output/{today}")
temp_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), "temp")
input_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), "input")
user_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), "user")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment