mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-08 21:54:26 +08:00
fix: missing 3rd input of download_url in copy_install
https://github.com/ltdrdata/ComfyUI-Manager/issues/848
This commit is contained in:
parent
7bd91b5dc8
commit
01d8d84346
@ -23,7 +23,7 @@ sys.path.append(glob_path)
|
|||||||
import cm_global
|
import cm_global
|
||||||
from manager_util import *
|
from manager_util import *
|
||||||
|
|
||||||
version = [2, 46]
|
version = [2, 46, 1]
|
||||||
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
|
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -710,13 +710,14 @@ def copy_install(files, js_path_name=None):
|
|||||||
if url.endswith("/"):
|
if url.endswith("/"):
|
||||||
url = url[:-1]
|
url = url[:-1]
|
||||||
try:
|
try:
|
||||||
|
filename = os.path.basename(url)
|
||||||
if url.endswith(".py"):
|
if url.endswith(".py"):
|
||||||
download_url(url, core.custom_nodes_path)
|
download_url(url, core.custom_nodes_path, filename)
|
||||||
else:
|
else:
|
||||||
path = os.path.join(core.js_path, js_path_name) if js_path_name is not None else core.js_path
|
path = os.path.join(core.js_path, js_path_name) if js_path_name is not None else core.js_path
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
os.makedirs(path)
|
os.makedirs(path)
|
||||||
download_url(url, path)
|
download_url(url, path, filename)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Install(copy) error: {url} / {e}", file=sys.stderr)
|
print(f"Install(copy) error: {url} / {e}", file=sys.stderr)
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "comfyui-manager"
|
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."
|
description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI."
|
||||||
version = "2.46"
|
version = "2.46.1"
|
||||||
license = "LICENSE"
|
license = "LICENSE"
|
||||||
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]
|
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user