(in_file: str, r_path: str)
| 48 | |
| 49 | |
| 50 | def import_h_file(in_file: str, r_path: str) -> str: |
| 51 | rel_path = os.path.join(root_dir, r_path, in_file) |
| 52 | if os.path.exists(rel_path): |
| 53 | return import_c_file(rel_path) |
| 54 | for include_dir in include_dirs: |
| 55 | inc_path = os.path.join(include_dir, in_file) |
| 56 | if os.path.exists(inc_path): |
| 57 | return import_c_file(inc_path) |
| 58 | else: |
| 59 | print("Failed to locate", in_file) |
| 60 | return "" |
| 61 | |
| 62 | |
| 63 | def import_c_file(in_file: str) -> str: |
no test coverage detected