fix: invalid model download path for custom node's model

https://github.com/ltdrdata/ComfyUI-Manager/issues/1294
This commit is contained in:
Dr.Lt.Data
2024-12-06 04:25:01 +09:00
parent 621ca13906
commit e6b46ebccf
3 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ sys.path.append(glob_path)
import cm_global
from manager_util import *
version = [2, 55, 1]
version = [2, 55, 2]
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')

View File

@@ -259,7 +259,7 @@ def get_model_dir(data):
def resolve_custom_node(save_path):
save_path = save_path[13:] # remove 'custom_nodes/'
repo_name = os.path.dirname(save_path) # get custom node repo name
repo_name = save_path.replace('\\','/').split('/')[0] # get custom node repo name
repo_path = core.lookup_installed_custom_nodes(repo_name)
if repo_path is not None and repo_path[0]:
# Returns the retargeted path based on the actually installed repository