ComfyUI-Custom-Scripts icon indicating copy to clipboard operation
ComfyUI-Custom-Scripts copied to clipboard

Save workflows inside config folder

Open davertor opened this issue 1 year ago • 0 comments

My problem is that I am running ComfyUI server in a docker container and when the container is stopped, the saved_workflows are deleted (as they are not saved in a persistent folder).

Instead of saving the workflows in the project's root directory, I think you should save them inside the comfyUI config folder, defined in folder_paths.folder_names_and_paths["configs"].

The code would be something similar to

import folders_path

workflows_directory = os.path.join(folder_names_and_paths["configs"], "pysssss-workflows")

davertor avatar Feb 19 '24 11:02 davertor