Files
tack af9d5cdedf fix: expose NODE_CLASS_MAPPINGS at repo root for ComfyUI discovery
ComfyUI loads custom_nodes/<folder>/__init__.py and reads
NODE_CLASS_MAPPINGS from there. Our implementation lived one level
down at tk_comfyui_batch_image/__init__.py, so ComfyUI never saw any
node mappings when the repo was cloned into ComfyUI/custom_nodes/.

Add a thin wrapper __init__.py at repo root that re-exports the
mappings from the inner package. Lets the git folder name be anything
(e.g. tk_comfyui_comic_tool on GitHub) while keeping the internal
Python package name stable (tk_comfyui_batch_image).
2026-04-23 16:38:21 +08:00

15 lines
538 B
Python

"""ComfyUI entry point for tk_comfyui_comic_tool.
ComfyUI loads `custom_nodes/<folder>/__init__.py` and reads
NODE_CLASS_MAPPINGS / NODE_DISPLAY_NAME_MAPPINGS from the top-level
module. Our actual implementation lives in the `tk_comfyui_batch_image`
sub-package; this file re-exports its public surface so the folder
name on disk can differ from the Python package name.
"""
from .tk_comfyui_batch_image import (
NODE_CLASS_MAPPINGS,
NODE_DISPLAY_NAME_MAPPINGS,
)
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]