(self, path, has_include_cb)
| 734 | self.__library_includes_re[library] = re_obj |
| 735 | |
| 736 | def __iterate_files(self, path, has_include_cb): |
| 737 | for root, _, files in os.walk(path): |
| 738 | for name in files: |
| 739 | filename = os.path.join(root, name) |
| 740 | try: |
| 741 | with open(filename, 'rt', errors='ignore') as f: |
| 742 | filedata = f.read() |
| 743 | has_include_cb(filedata) |
| 744 | except IOError: |
| 745 | pass |
| 746 | |
| 747 | def get_libraries(self, folder): |
| 748 | print('Detecting library usage...') |
no test coverage detected