comparison py/params.py @ 155:d03157c7ad60

rough touch sensor
author Matt Johnston <matt@ucc.asn.au>
date Fri, 21 Dec 2012 23:30:16 +0800
parents b32e5a11a4cb
children 6d799bee3508
comparison
equal deleted inserted replaced
154:542efb356e46 155:d03157c7ad60
41 41
42 def save(self, f = None): 42 def save(self, f = None):
43 if not f: 43 if not f:
44 f = file(config.PARAMS_FILE, 'w') 44 f = file(config.PARAMS_FILE, 'w')
45 json.dump(self, f, sort_keys=True, indent=4) 45 json.dump(self, f, sort_keys=True, indent=4)
46 f.write('\n')
46 f.flush() 47 f.flush()