fix(core): remove broken decorator and use standard ComfyUI registration for LazyGate

This commit is contained in:
Meisoftcoltd
2026-06-28 20:14:59 +00:00
parent cbc397694d
commit 322bf716ef
3 changed files with 38 additions and 1 deletions
+4
View File
@@ -52,4 +52,8 @@ NODE_DISPLAY_NAME_MAPPINGS.update({
"Meisoft_LazyGate": "🚦 Meisoft Lazy Gate",
})
NODE_CLASS_MAPPINGS.update({
"Meisoft_LazyGate": tools.Meisoft_LazyGate,
})
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
+34
View File
@@ -0,0 +1,34 @@
import sys
import os
from types import ModuleType
class DummyModule(ModuleType):
def __getattr__(self, name):
if name == "__path__":
return []
if name == "__file__":
return "dummy.py"
return DummyModule(f"{self.__name__}.{name}")
def __call__(self, *args, **kwargs):
return self
comfy_module = DummyModule("comfy")
sys.modules["comfy"] = comfy_module
comfy_utils_module = DummyModule("comfy.utils")
sys.modules["comfy.utils"] = comfy_utils_module
comfy_mm_module = DummyModule("comfy.model_management")
sys.modules["comfy.model_management"] = comfy_mm_module
folder_paths_module = DummyModule("folder_paths")
folder_paths_module.get_output_directory = lambda: "."
folder_paths_module.get_filename_list = lambda x: []
sys.modules["folder_paths"] = folder_paths_module
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import importlib.util
spec = importlib.util.spec_from_file_location("ComfyUI_Sequential_Batcher", "__init__.py")
module = importlib.util.module_from_spec(spec)
sys.modules["ComfyUI_Sequential_Batcher"] = module
spec.loader.exec_module(module)
print("Import success!")
-1
View File
@@ -582,7 +582,6 @@ class LTXVSingleFrameInjector:
return ({"samples": samples, "noise_mask": mask},)
@register_node(display_name="🚦 Meisoft Lazy Gate")
class Meisoft_LazyGate:
@classmethod
def INPUT_TYPES(s):