blob: f668da238611278fd44a71687b3fcbc3bb49be89 [file] [log] [blame]
Christopher Dunnbd1e8952014-11-19 23:30:47 -06001from __future__ import print_function
Christopher Dunnf9864232007-06-14 21:01:26 +00002import glob
3import os.path
4for 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 ):
Christopher Dunnbd1e8952014-11-19 23:30:47 -06008 print('skipping:', target)
Christopher Dunnf9864232007-06-14 21:01:26 +00009 else:
Christopher Dunnbd1e8952014-11-19 23:30:47 -060010 print('creating:', target)
Christopher Dunnf9864232007-06-14 21:01:26 +000011 file(target,'wt').write(text)
12