Yields the path of all .proto files under the root.
(root)
| 26 | |
| 27 | |
| 28 | def proto_files(root): |
| 29 | """Yields the path of all .proto files under the root.""" |
| 30 | for (dirpath, _, filenames) in os.walk(root): |
| 31 | for filename in filenames: |
| 32 | if filename.endswith('.proto'): |
| 33 | yield os.path.join(dirpath, filename) |
| 34 | |
| 35 | |
| 36 | def compile_proto(source, python_out, proto_path): |