From 3a0fc65b64756a4151db0b98ecab69d07c3f2f23 Mon Sep 17 00:00:00 2001 From: limbicnation Date: Thu, 5 Sep 2024 04:11:01 +0200 Subject: [PATCH] fix: resolve import issues and add __init__.py for custom node - Added __init__.py to register the custom node properly - Fixed folder structure for correct module imports - Updated node file to handle imports based on the environment --- __init__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 __init__.py diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..2ccd9ad --- /dev/null +++ b/__init__.py @@ -0,0 +1,11 @@ +from .your_node_file import ComfyUIDepthEstimationNode + +NODE_CLASS_MAPPINGS = { + "ComfyUIDepthEstimationNode": ComfyUIDepthEstimationNode +} + +NODE_DISPLAY_NAME_MAPPINGS = { + "ComfyUIDepthEstimationNode": "Depth Estimation Node" +} + +__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]