From 35560bceb0558dd8ef04248dcf9d910ea899c34b Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sun, 22 Feb 2026 19:13:08 +0100 Subject: [PATCH] Fix package name extraction for nested module paths Co-Authored-By: Claude Opus 4.6 --- mapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapper.py b/mapper.py index 2c4f6b6..66a7657 100644 --- a/mapper.py +++ b/mapper.py @@ -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: