blob: 86650a2d592304260de07d6c40583fa7dc500845 [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001import sys
2import os
3
4codegen_single_Modem_ptr_file = sys.argv[1]
5
6if sys.version_info[0] >= 3:
7 f = open(codegen_single_Modem_ptr_file, "r", errors="ignore")
8else:
9 f = open(codegen_single_Modem_ptr_file, "r")
10file_list = f.readlines()
11f.close()
12
13new_codegen_single_Modem_ptr_content = ""
14for i, line in enumerate(file_list):
15 if "utmd_precodegen.h" not in line:
16 new_codegen_single_Modem_ptr_content += line
17
18f = open(codegen_single_Modem_ptr_file, "w")
19f.write(new_codegen_single_Modem_ptr_content)
20f.close()