From 8eff33b1f77a720c21d37644b106522aac6d71f2 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Tue, 1 Oct 2013 19:22:59 +1300 Subject: [PATCH] @cybojenix this --- core/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):