Fix package name extraction for nested module paths

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-22 19:13:08 +01:00
parent b56687158d
commit 35560bceb0

View File

@@ -20,7 +20,7 @@ class NodePackageMapper:
# "custom_nodes.PackageName" -> "PackageName"
# "comfy_extras.nodes_xyz" -> "__builtin__"
# "comfy_api_nodes.xyz" -> "__builtin__"
parts = module.split(".", 1)
parts = module.split(".")
if parts[0] == "custom_nodes" and len(parts) > 1:
self._map[class_type] = parts[1]
else: