(top_path)
| 611 | return os.path.isdir(new_dir) |
| 612 | |
| 613 | def general_source_files(top_path): |
| 614 | pruned_directories = {'CVS':1, '.svn':1, 'build':1} |
| 615 | prune_file_pat = re.compile(r'(?:[~#]|\.py[co]|\.o)$') |
| 616 | for dirpath, dirnames, filenames in os.walk(top_path, topdown=True): |
| 617 | pruned = [ d for d in dirnames if d not in pruned_directories ] |
| 618 | dirnames[:] = pruned |
| 619 | for f in filenames: |
| 620 | if not prune_file_pat.search(f): |
| 621 | yield os.path.join(dirpath, f) |
| 622 | |
| 623 | def general_source_directories_files(top_path): |
| 624 | """Return a directory name relative to top_path and |
no test coverage detected