From 9a4ecb2b90bc96922cb0b6e8d577cdaee211c330 Mon Sep 17 00:00:00 2001 From: Mel Massadian Date: Mon, 30 Dec 2024 18:37:43 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20handle=20missing=20submod?= =?UTF-8?q?ules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the nodes should never fail to load completely. I still need to remove the few remaining side effects like this one. --- utils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/utils.py b/utils.py index 31f51fd..6083219 100644 --- a/utils.py +++ b/utils.py @@ -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)