From d5a4da37cdb12dd5415134d96ab474e6fb60b7e5 Mon Sep 17 00:00:00 2001 From: vairleon Date: Sat, 31 Aug 2024 16:15:33 +0800 Subject: [PATCH] fix: add __init__.py for packaging, fix comfyui-manager path --- .gitignore | 1 + .gitmodules | 6 +++--- ComfyUI-Manager | 1 - __init__.py | 6 ++++++ comfy/__init__.py | 0 custom_nodes/ComfyUI-Manager | 1 + 6 files changed, 11 insertions(+), 4 deletions(-) delete mode 160000 ComfyUI-Manager create mode 100644 __init__.py create mode 100644 comfy/__init__.py create mode 160000 custom_nodes/ComfyUI-Manager diff --git a/.gitignore b/.gitignore index b212b0297..15b2ee51a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ __pycache__/ /temp/ /custom_nodes/ !custom_nodes/example_node.py.example +!custom_nodes/ComfyUI-Manager extra_model_paths.yaml /.vs .vscode/ diff --git a/.gitmodules b/.gitmodules index f2f749ec8..55802fa4c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ -[submodule "ComfyUI-Manager"] - path = ComfyUI-Manager - url = https://github.com/ltdrdata/ComfyUI-Manager [submodule "ComfyUI-to-Python-Extension"] path = ComfyUI-to-Python-Extension url = https://github.com/Alschain/ComfyUI-to-Python-Extension +[submodule "custom_nodes/ComfyUI-Manager"] + path = custom_nodes/ComfyUI-Manager + url = https://github.com/ltdrdata/ComfyUI-Manager diff --git a/ComfyUI-Manager b/ComfyUI-Manager deleted file mode 160000 index d7170c026..000000000 --- a/ComfyUI-Manager +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d7170c0264ca1623b7a4ba7d63756a9b54a7d119 diff --git a/__init__.py b/__init__.py new file mode 100644 index 000000000..7913b6259 --- /dev/null +++ b/__init__.py @@ -0,0 +1,6 @@ +import os +import sys +sys.path.append(os.path.dirname(__file__)) +from ComfyUI import ( + comfy, + ) \ No newline at end of file diff --git a/comfy/__init__.py b/comfy/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/custom_nodes/ComfyUI-Manager b/custom_nodes/ComfyUI-Manager new file mode 160000 index 000000000..0f679ac99 --- /dev/null +++ b/custom_nodes/ComfyUI-Manager @@ -0,0 +1 @@ +Subproject commit 0f679ac99c3ae83a1ce58579916afec1faf257c8