(in_file: str)
| 42 | |
| 43 | |
| 44 | def import_c_file(in_file: str) -> str: |
| 45 | in_file = os.path.relpath(in_file, root_dir) |
| 46 | deps.append(in_file) |
| 47 | out_text = "" |
| 48 | |
| 49 | try: |
| 50 | with open(in_file, encoding="utf-8") as file: |
| 51 | out_text += process_file(in_file, list(file)) |
| 52 | except Exception: |
| 53 | with open(in_file) as file: |
| 54 | out_text += process_file(in_file, list(file)) |
| 55 | return out_text |
| 56 | |
| 57 | |
| 58 | def process_file(in_file: str, lines: List[str]) -> str: |
no test coverage detected