fixed new config engine, moved IRC loading
This commit is contained in:
parent
8eff33b1f7
commit
507c59ad15
4 changed files with 43 additions and 43 deletions
|
@ -7,11 +7,10 @@ class Config(dict):
|
|||
self.path = os.path.abspath("{}.json".format(name))
|
||||
self.update(*args, **kwargs)
|
||||
|
||||
def reload(self):
|
||||
def load_config(self):
|
||||
with open(self.path) as f:
|
||||
self = json.load(f)
|
||||
print self
|
||||
self.update(json.load(f))
|
||||
|
||||
|
||||
def save(self):
|
||||
def save_config(self):
|
||||
pass
|
Reference in a new issue