diff --git a/comfy/utils.py b/comfy/utils.py index ecc3ea6f4..a9a8429c2 100644 --- a/comfy/utils.py +++ b/comfy/utils.py @@ -13,7 +13,7 @@ def get_extension_calling(): if "/custom_nodes/" in frame.filename: stack_module = inspect.getmodule(frame[0]) if stack_module: - return re.sub(r".*\.?custom_nodes\.([^\.]+).*", r"\1", stack_module.__name__).split(".")[0] + return re.sub(r".*\.?custom_nodes\.([^\.]+).*", r"\1", stack_module.__name__.replace("\\", ".").replace("/", ".")).split(".")[0] return None