Feat: Reorganize node imports for improved structure and clarity

This commit is contained in:
KATO Kanryu
2026-05-24 19:38:32 +09:00
parent b0851be0c0
commit 84fe3aaa15
+16 -7
View File
@@ -14,14 +14,18 @@ _NODES = []
WEB_DIRECTORY = "web"
# Import individual node modules (Snake Case naming convention)
try:
# Import Single Prompt node
from .nodes import text_nodes_single_prompt
_NODES.append(text_nodes_single_prompt.SinglePrompt)
# Import Join Strings node
from .nodes import text_nodes_join_strings
_NODES.append(text_nodes_join_strings.JoinStrings)
# Import Math (Int) node
from .nodes import math_nodes_int
_NODES.append(math_nodes_int.MathInt)
# Import Multi Prompts node
from .nodes import text_nodes_multi_prompts
_NODES.append(text_nodes_multi_prompts.MultiPromptsTextDriven)
# Import Prompt Line node
from .nodes import text_nodes_prompt_line
_NODES.append(text_nodes_prompt_line.PromptLine)
@@ -30,13 +34,18 @@ try:
from .nodes import text_nodes_resolution_selector
_NODES.append(text_nodes_resolution_selector.ResolutionSelector)
# Import Single Prompt node
from .nodes import text_nodes_single_prompt
_NODES.append(text_nodes_single_prompt.SinglePrompt)
# Import Text Line Prompt node
from .nodes import text_nodes_text_line_prompt
_NODES.append(text_nodes_text_line_prompt.TextLinePromptTextDriven)
# Import Text Line Selector node
from .nodes import text_nodes_text_line_selector
_NODES.append(text_nodes_text_line_selector.TextLineSelector)
# Import Math (Int) node
from .nodes import math_nodes_int
_NODES.append(math_nodes_int.MathInt)
log.info(f"Successfully loaded {len(_NODES)} nodes.")
except Exception as e:
log.error(f"Failed to load nodes: {e}")