-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path__init__.py
More file actions
51 lines (39 loc) · 1.43 KB
/
__init__.py
File metadata and controls
51 lines (39 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
"""
Prompt Orchestration System - ComfyUI Custom Nodes
Advanced prompt manipulation system with 220+ modifiers across 11 variation dimensions
"""
import sys
import traceback
from pathlib import Path
# Setup
current_dir = Path(__file__).parent
log_file = current_dir / "debug_node_load.log"
# Simple debug function - no logging framework
def debug_log(msg):
with open(log_file, 'a', encoding='utf-8') as f:
f.write(f"{msg}\n")
print(f"[PromptOrch] {msg}")
# Clear previous log
with open(log_file, 'w', encoding='utf-8') as f:
f.write("=== Prompt Orchestration Node Loading ===\n")
# Add current directory to path for imports
if str(current_dir) not in sys.path:
sys.path.insert(0, str(current_dir))
# Import nodes
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
try:
debug_log("Importing from local nodes module...")
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
debug_log(f"SUCCESS: Found {len(NODE_CLASS_MAPPINGS)} nodes")
# List the nodes
for name in NODE_CLASS_MAPPINGS.keys():
debug_log(f" - {name}")
except Exception as e:
debug_log(f"FAILED: {type(e).__name__}: {e}")
debug_log(traceback.format_exc())
# Export for ComfyUI
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
# Version info
__version__ = "2.0.0"
debug_log(f"=== Loading complete: {len(NODE_CLASS_MAPPINGS)} nodes ===")