Skip to content

Commit f800c0d

Browse files
committed
Remove debug logs.
1 parent e9db76b commit f800c0d

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/validate_nodes.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,14 @@ def load_node_mappings(repo_path: str) -> Dict[str, Type]:
2424
"""
2525
init_path = os.path.join(repo_path, "__init__.py")
2626

27-
print(f"Debug: Loading from init_path: {init_path}")
28-
print(f"Debug: Repository path: {repo_path}")
29-
3027
if not os.path.exists(init_path):
3128
raise FileNotFoundError(f"Could not find __init__.py in {repo_path}")
3229

3330
# Add the repo path itself to system path (not its parent)
3431
sys.path.insert(0, repo_path)
35-
print(f"Debug: Python path after insert: {sys.path[0]}")
36-
print(f"Debug: Full sys.path: {sys.path}")
37-
3832
try:
3933
# Generate a unique module name based on the path
4034
module_name = f"custom_nodes_{Path(repo_path).name}"
41-
print(f"Debug: Generated module name: {module_name}")
42-
43-
# List directory contents
44-
print(f"Debug: Directory contents of {repo_path}:")
45-
for item in os.listdir(repo_path):
46-
print(f" - {item}")
4735

4836
# Load the module
4937
spec = importlib.util.spec_from_file_location(module_name, init_path)
@@ -53,22 +41,17 @@ def load_node_mappings(repo_path: str) -> Dict[str, Type]:
5341
module = importlib.util.module_from_spec(spec)
5442
# Register the module in sys.modules
5543
sys.modules[module_name] = module
56-
print(f"Debug: Created module object: {module}")
5744

5845
spec.loader.exec_module(module)
59-
print("Debug: Successfully executed module")
6046

6147
# Get NODE_CLASS_MAPPINGS
6248
mappings = getattr(module, "NODE_CLASS_MAPPINGS", {})
63-
print(f"Debug: Found mappings: {bool(mappings)}")
6449

6550
if not mappings:
6651
raise AttributeError("NODE_CLASS_MAPPINGS not found in __init__.py")
6752

6853
return mappings
6954
except Exception as e:
70-
print(f"Debug: Exception occurred: {str(e)}")
71-
print(f"Debug: Exception type: {type(e)}")
7255
raise
7356
finally:
7457
# Remove the temporary path and cleanup sys.modules

0 commit comments

Comments
 (0)