yu.dong | c33b307 | 2024-08-21 23:14:49 -0700 | [diff] [blame^] | 1 | import sys |
2 | import os | ||||
3 | |||||
4 | ps_trace_folder = sys.argv[1] | ||||
5 | |||||
6 | for subdir, dirs, files in os.walk(ps_trace_folder): | ||||
7 | for file in files: | ||||
8 | if file.endswith(".h"): | ||||
9 | filepath = subdir + os.sep + file | ||||
10 | newfilepath = subdir + os.sep + file.replace(".h", "_precodegen.h") | ||||
11 | os.rename(filepath, newfilepath) |