mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-14 16:38:00 -05:00
Closes https://github.com/CoolProp/CoolProp/issues/94 Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
14 lines
270 B
Python
14 lines
270 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()
|
|
|
|
|