1import os.path
2
3for 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
14