(json_file)
| 408 | |
| 409 | |
| 410 | def 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 | |
| 425 | def clone_or_pull_git_repository(git_url): |
no test coverage detected