Browse Source

fix: channel abbreviation

pull/642/head
Dr.Lt.Data 7 months ago
parent
commit
b3b9b5a5ff
  1. 9
      cm-cli.py
  2. 3
      glob/manager_core.py

9
cm-cli.py

@ -123,6 +123,8 @@ def install_deps():
else: # disabled else: # disabled
core.gitclone_set_active([k], False) core.gitclone_set_active([k], False)
print("Dependency installation and activation complete.")
def restore_snapshot(snapshot_name): def restore_snapshot(snapshot_name):
global processed_install global processed_install
@ -532,17 +534,14 @@ def deps_in_workflow():
print(f"missing arguments: --workflow <path>") print(f"missing arguments: --workflow <path>")
exit(-1) exit(-1)
elif not os.path.exists(input_path): elif not os.path.exists(input_path):
print(f"File not founed: {input_path}") print(f"File not found: {input_path}")
exit(-1) exit(-1)
if output_path is None: if output_path is None:
print(f"missing arguments: --output <path>") print(f"missing arguments: --output <path>")
exit(-1) exit(-1)
print(f"{input_path}, {output_path}") used_exts, unknown_nodes = asyncio.run(core.extract_nodes_from_workflow(input_path, mode=mode, channel_url=channel))
used_exts, unknown_nodes = asyncio.run(core.extract_nodes_from_workflow(input_path))
custom_nodes = {} custom_nodes = {}
for x in used_exts: for x in used_exts:

3
glob/manager_core.py

@ -598,6 +598,9 @@ def is_file_created_within_one_day(file_path):
async def get_data_by_mode(mode, filename, channel_url=None): async def get_data_by_mode(mode, filename, channel_url=None):
if channel_url in get_channel_dict():
channel_url = get_channel_dict()[channel_url]
try: try:
if mode == "local": if mode == "local":
uri = os.path.join(comfyui_manager_path, filename) uri = os.path.join(comfyui_manager_path, filename)

Loading…
Cancel
Save