Eli Bendersky | 43375bf | 2015-04-20 07:19:09 -0700 | [diff] [blame] | 1 | import os.path |
2 | |||||
3 | for cur_path, dirs, files in os.walk('.'): | ||||
4 | if cur_path == '.': | ||||
5 | for f in files: | ||||
6 | if f.endswith('.h'): | ||||
7 | print f | ||||
8 | fo = open(f, 'w') | ||||
9 | fo.write('#include "_fake_defines.h"\n') | ||||
10 | fo.write('#include "_fake_typedefs.h"\n') | ||||
11 | fo.close() | ||||
12 | |||||
13 |