fix: Changed to use relative imports * The current import method causes import failures if the path name of a custom node changes (import failures occur when a new manager is introduced) fix: Incorrect use of `\` in regex strings * From Python 3.12 onwards, using the `\` character without explicitly using regex strings like r'\' is treated as a syntax error
11 lines
374 B
Python
11 lines
374 B
Python
import os
|
|
import sys
|
|
import folder_paths
|
|
|
|
custom_nodes_path = os.path.join(folder_paths.base_path, "custom_nodes")
|
|
onebuttonprompt_path = os.path.join(custom_nodes_path, "OneButtonPrompt")
|
|
sys.path.append(onebuttonprompt_path)
|
|
|
|
from .OneButtonPromptNodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
|
|
|
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS'] |