(target_dir)
| 326 | |
| 327 | |
| 328 | def get_nodes(target_dir): |
| 329 | py_files = [] |
| 330 | directories = [] |
| 331 | |
| 332 | for item in os.listdir(target_dir): |
| 333 | if ".git" in item or "__pycache__" in item: |
| 334 | continue |
| 335 | |
| 336 | path = os.path.abspath(os.path.join(target_dir, item)) |
| 337 | |
| 338 | if os.path.isfile(path) and item.endswith(".py"): |
| 339 | py_files.append(path) |
| 340 | elif os.path.isdir(path): |
| 341 | directories.append(path) |
| 342 | |
| 343 | return py_files, directories |
| 344 | |
| 345 | |
| 346 | def get_urls_from_list_file(list_file): |