From fd37f06cef4c602ba54314600cc8e114b97d5800 Mon Sep 17 00:00:00 2001 From: smthemex <138738845+smthemex@users.noreply.github.com> Date: Wed, 22 May 2024 10:42:08 +0800 Subject: [PATCH] Update customnet_util.py add --- customnet_util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/customnet_util.py b/customnet_util.py index b19cb72..06f15ea 100644 --- a/customnet_util.py +++ b/customnet_util.py @@ -17,8 +17,9 @@ import sys import os path = os.path.dirname(os.path.abspath(__file__)) -current_path = os.getcwd() -paths = os.path.join(current_path,"custom_nodes","Comfyui_CustomNet","customnet") +from folder_paths import base_path +paths = os.path.join(base_path,"custom_nodes","ComfyUI_CustomNet") +# print(paths) sys.path.append(paths) def pil_rectangle_crop(im):