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

@@ -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