blob: 8a442c2ea4a9d74f6320800959f7c06d9d09f5c6 [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001import 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)