(in_file: str, r_path: str)
| 29 | |
| 30 | |
| 31 | def import_h_file(in_file: str, r_path: str) -> str: |
| 32 | rel_path = os.path.join(root_dir, r_path, in_file) |
| 33 | if os.path.exists(rel_path): |
| 34 | return import_c_file(rel_path) |
| 35 | for include_dir in include_dirs: |
| 36 | inc_path = os.path.join(include_dir, in_file) |
| 37 | if os.path.exists(inc_path): |
| 38 | return import_c_file(inc_path) |
| 39 | else: |
| 40 | print("Failed to locate", in_file) |
| 41 | return "" |
| 42 | |
| 43 | |
| 44 | def import_c_file(in_file: str) -> str: |
no test coverage detected