diff --git a/core/config.py b/core/config.py index d5be7e8..3f6084d 100755 --- a/core/config.py +++ b/core/config.py @@ -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):