From 596316536e7b3ab9aa6a9d58a7c7825785796fe4 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Thu, 22 Aug 2024 23:05:55 +0900 Subject: [PATCH] fix: invalid etc model path https://github.com/ltdrdata/ComfyUI-Manager/pull/942#issuecomment-2303932387 --- glob/manager_core.py | 2 +- glob/manager_server.py | 4 ++-- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/glob/manager_core.py b/glob/manager_core.py index c1f6a10a..fa63a9d6 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -23,7 +23,7 @@ import cm_global from manager_util import * -version = [2, 50, 1] +version = [2, 50, 2] version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '') diff --git a/glob/manager_server.py b/glob/manager_server.py index 6eff6a96..1401293e 100644 --- a/glob/manager_server.py +++ b/glob/manager_server.py @@ -240,7 +240,7 @@ def get_model_dir(data): if data['save_path'] != 'default': if '..' in data['save_path'] or data['save_path'].startswith('/'): print(f"[WARN] '{data['save_path']}' is not allowed path. So it will be saved into 'models/etc'.") - base_model = "etc" + base_model = os.path.join(folder_paths.models_dir, "etc") else: if data['save_path'].startswith("custom_nodes"): base_model = os.path.join(core.comfy_path, data['save_path']) @@ -279,7 +279,7 @@ def get_model_dir(data): print(f"[ComfyUI-Manager] Your ComfyUI is outdated version.") base_model = folder_paths.folder_names_and_paths["unet"][0][0] # outdated version else: - base_model = "etc" + base_model = os.path.join(folder_paths.models_dir, "etc") return base_model diff --git a/pyproject.toml b/pyproject.toml index 9f8c7a8d..942bc2e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-manager" description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI." -version = "2.50.1" +version = "2.50.2" license = { file = "LICENSE.txt" } dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]