@cybojenix this
This commit is contained in:
parent
28cb06c84b
commit
8eff33b1f7
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Reference in a new issue