mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-11 05:52:33 +08:00
Fix get_extension_calling for single files
This commit is contained in:
parent
6d8fa05f86
commit
dcaea7a280
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user