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

Function get_py_file_paths

scanner.py:313–325  ·  view source on GitHub ↗
(dirname)

Source from the content-addressed store, hash-verified

311
312
313def get_py_file_paths(dirname):
314 file_paths = []
315
316 for root, dirs, files in os.walk(dirname):
317 if ".git" in root or "__pycache__" in root:
318 continue
319
320 for file in files:
321 if file.endswith(".py"):
322 file_path = os.path.join(root, file)
323 file_paths.append(file_path)
324
325 return file_paths
326
327
328def get_nodes(target_dir):

Callers 1

gen_jsonFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected