From 3e89100ae97aaa284d1c6833de396bc0217a8206 Mon Sep 17 00:00:00 2001 From: CHIEF AI <19092813@qq.com> Date: Wed, 4 Mar 2026 13:22:28 +0800 Subject: [PATCH] Update __init__.py --- __init__.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/__init__.py b/__init__.py index 516b1cb..db9073e 100644 --- a/__init__.py +++ b/__init__.py @@ -1,9 +1,6 @@ -""" -JSON-Prompt-Modifier - ComfyUI Custom Node -A node for loading, editing and exporting JSON format prompts without translation features. -""" +from .json_modifier import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS -from .json_prompt_modifier import JSONPromptModifier, NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS +# 告诉 ComfyUI 这里的 JS 文件需要被加载 +WEB_DIRECTORY = "./js" -WEB_DIRECTORY = "./web/js" -__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', 'WEB_DIRECTORY'] +__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]