From 84ec6a53f20a3e953484e57a1e69775fa79e3012 Mon Sep 17 00:00:00 2001 From: Benjamin Berman Date: Tue, 29 Apr 2025 12:02:27 -0700 Subject: [PATCH] main.py stub --- main.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 000000000..002c8926d --- /dev/null +++ b/main.py @@ -0,0 +1,16 @@ +import asyncio +import warnings +from pathlib import Path + +from comfy.component_model.folder_path_types import FolderNames + +if __name__ == "__main__": + warnings.warn("main.py is deprecated. Start comfyui by installing the package through the instructions in the README, not by cloning the repository.", DeprecationWarning) + this_file_parent_dir = Path(__file__).parent + from comfy.cmd.main import main + from comfy.cmd.folder_paths import folder_names_and_paths # type: FolderNames + fn: FolderNames = folder_names_and_paths + fn.base_paths.clear() + fn.base_paths.append(this_file_parent_dir) + + asyncio.run(main(from_script_dir=this_file_parent_dir))