| Derek Sollenberger | 2eb3b4d | 2016-01-11 14:41:40 -0500 | [diff] [blame] | 1 | from __future__ import print_function |
| 2 | import glob | ||||
| 3 | import os.path | ||||
| 4 | for path in glob.glob( '*.json' ): | ||||
| 5 | text = file(path,'rt').read() | ||||
| 6 | target = os.path.splitext(path)[0] + '.expected' | ||||
| 7 | if os.path.exists( target ): | ||||
| 8 | print('skipping:', target) | ||||
| 9 | else: | ||||
| 10 | print('creating:', target) | ||||
| 11 | file(target,'wt').write(text) | ||||
| 12 | |||||