blob: 8a442c2ea4a9d74f6320800959f7c06d9d09f5c6 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001import sys
2import os
3
4ps_trace_folder = sys.argv[1]
5
6for 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)