MCPcopy
hub / github.com/Comfy-Org/ComfyUI-Manager / get_py_urls_from_json

Function get_py_urls_from_json

scanner.py:410–422  ·  view source on GitHub ↗
(json_file)

Source from the content-addressed store, hash-verified

408
409
410def get_py_urls_from_json(json_file):
411 with open(json_file, encoding='utf-8') as file:
412 data = json.load(file)
413
414 custom_nodes = data.get('custom_nodes', [])
415 py_files = []
416 for node in custom_nodes:
417 if node.get('install_type') == 'copy':
418 files = node.get('files', [])
419 if files:
420 py_files.append((files[0], node.get('title'), node.get('preemptions'), node.get('nodename_pattern')))
421
422 return py_files
423
424
425def clone_or_pull_git_repository(git_url):

Callers 1

update_custom_nodesFunction · 0.85

Calls 2

getMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected