pythongosssss / ComfyUI-Custom-Scripts

Enhancements & experiments for ComfyUI, mostly focusing on UI features
MIT License
1.38k stars 104 forks source link

Save workflows inside config folder #187

Open davertor opened 4 months ago

davertor commented 4 months ago

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