Files
CoolProp/dev/clean_up_json.py
scls19fr 5045c96322 Fix Python print (#1746)
* Fix print

* Some manual fixes

* Revert
2018-10-19 22:59:31 +02:00

13 lines
262 B
Python

import json, sys, glob
sys.path.append('..')
from package_json import json_options
for fluid in glob.glob('fluids/*.json'):
print(fluid)
j = json.load(open(fluid,'r'))
fp = open(fluid,'w')
fp.write(json.dumps(j,**json_options))
fp.close()