(file_arg: str)
| 424 | |
| 425 | |
| 426 | def normalize_source_file_arg(file_arg: str) -> str: |
| 427 | if file_arg.startswith(f"{source_dir}/"): |
| 428 | return file_arg[len(source_dir) + 1 :] |
| 429 | if os.path.isabs(file_arg): |
| 430 | return os.path.relpath(file_arg, source_dir) |
| 431 | return file_arg |
| 432 | |
| 433 | |
| 434 | def translate_source_files( |