@cybojenix this

This commit is contained in:
Luke Rogers 2013-10-01 19:22:59 +13:00
parent 28cb06c84b
commit 8eff33b1f7

View file

@ -4,13 +4,13 @@ import os
class Config(dict):
def __init__(self, name, *args, **kwargs):
self.path = os.path.abspath(name)
self.path = os.path.abspath("{}.json".format(name))
self.update(*args, **kwargs)
def reload(self):
with open(self.path) as f:
self = json.load(f)
print self
print self
def save(self):