fix: 🐛 handle missing submodules

the nodes should never fail to load completely.
I still need to remove the few remaining side effects like this one.
This commit is contained in:
Mel Massadian
2024-12-30 18:49:43 +01:00
committed by Mel Massadian
parent 6851da6638
commit d61da30409
+4 -3
View File
@@ -513,9 +513,10 @@ font_path = here / "data" / "font.ttf"
extern_root = here / "extern"
add_path(extern_root)
for pth in extern_root.iterdir():
if pth.is_dir():
add_path(pth)
if extern_root.exists():
for pth in extern_root.iterdir():
if pth.is_dir():
add_path(pth)
# - Add the ComfyUI directory and custom nodes path to the sys.path list
add_path(comfy_dir)