ComfyUI-Manager clones the whole repo into custom_nodes/comfyui-mbqwedge/ and needs __init__.py directly at that root. Move the node package (__init__.py, mbq_wedge.py, js/) up to repo root, and the viewer (mbq_viewer.py, mbq_functions.py, mbq_parser.py) into viewer/. Swap the two requirements.txt files accordingly (node needs none, viewer needs pyside6/send2trash) and fold the node's README content into the root README, which remains the single source of truth for both.
20 lines
553 B
Python
20 lines
553 B
Python
import sys
|
|
import os
|
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
from mbq_wedge import MBQWedge, MBQWedgeSampler, MBQWedgeScheduler
|
|
|
|
NODE_CLASS_MAPPINGS = {
|
|
"MBQWedge": MBQWedge,
|
|
"MBQWedgeSampler": MBQWedgeSampler,
|
|
"MBQWedgeScheduler": MBQWedgeScheduler,
|
|
}
|
|
NODE_DISPLAY_NAME_MAPPINGS = {
|
|
"MBQWedge": "MBQ Wedge",
|
|
"MBQWedgeSampler": "MBQ Wedge Sampler",
|
|
"MBQWedgeScheduler": "MBQ Wedge Scheduler",
|
|
}
|
|
WEB_DIRECTORY = "./js"
|
|
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]
|