Files
blepping-comfyui_overly_com…/py/external.py
T
blepping 470b38231f Refactor (#1)
Refactor all the things!
2024-08-04 11:28:06 -06:00

19 lines
500 B
Python

import contextlib
import importlib
MODULES = {}
with contextlib.suppress(ImportError, NotImplementedError):
bleh = importlib.import_module("custom_nodes.ComfyUI-bleh")
bleh_version = getattr(bleh, "BLEH_VERSION", -1)
if bleh_version < 1:
raise NotImplementedError
MODULES["bleh"] = bleh.py
with contextlib.suppress(ImportError, NotImplementedError):
sonar = importlib.import_module("custom_nodes.ComfyUI-sonar")
MODULES["sonar"] = sonar.py
__all__ = ("MODULES",)