Skip to content

Commit 5963165

Browse files
committed
fix: invalid etc model path
#942 (comment)
1 parent 521e927 commit 5963165

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

glob/manager_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import cm_global
2424
from manager_util import *
2525

26-
version = [2, 50, 1]
26+
version = [2, 50, 2]
2727
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
2828

2929

glob/manager_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def get_model_dir(data):
240240
if data['save_path'] != 'default':
241241
if '..' in data['save_path'] or data['save_path'].startswith('/'):
242242
print(f"[WARN] '{data['save_path']}' is not allowed path. So it will be saved into 'models/etc'.")
243-
base_model = "etc"
243+
base_model = os.path.join(folder_paths.models_dir, "etc")
244244
else:
245245
if data['save_path'].startswith("custom_nodes"):
246246
base_model = os.path.join(core.comfy_path, data['save_path'])
@@ -279,7 +279,7 @@ def get_model_dir(data):
279279
print(f"[ComfyUI-Manager] Your ComfyUI is outdated version.")
280280
base_model = folder_paths.folder_names_and_paths["unet"][0][0] # outdated version
281281
else:
282-
base_model = "etc"
282+
base_model = os.path.join(folder_paths.models_dir, "etc")
283283

284284
return base_model
285285

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "comfyui-manager"
33
description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI."
4-
version = "2.50.1"
4+
version = "2.50.2"
55
license = { file = "LICENSE.txt" }
66
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]
77

0 commit comments

Comments
 (0)