mirror of
https://github.com/Azornes/Comfyui-LayerForge.git
synced 2026-03-22 13:12:10 -03:00
Moved sys.path modification from canvas_node.py to __init__.py for better package management. Improved logger formatting for colored output and enhanced file logging configuration with error handling for log directory creation. Added python/__init__.py to make the 'python' directory a package.
22 lines
487 B
Python
22 lines
487 B
Python
import sys
|
|
import os
|
|
|
|
# Add the custom node's directory to the Python path
|
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
from .canvas_node import CanvasNode
|
|
|
|
CanvasNode.setup_routes()
|
|
|
|
NODE_CLASS_MAPPINGS = {
|
|
"CanvasNode": CanvasNode
|
|
}
|
|
|
|
NODE_DISPLAY_NAME_MAPPINGS = {
|
|
"CanvasNode": "Layer Forge (Editor, outpaintintg, Canvas Node)"
|
|
}
|
|
|
|
WEB_DIRECTORY = "./js"
|
|
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|