(dirname)
| 311 | |
| 312 | |
| 313 | def 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 | |
| 328 | def get_nodes(target_dir): |