From 67611ab648b4472a55e9c630d7e16d546f4e0904 Mon Sep 17 00:00:00 2001 From: Phyks Date: Mon, 30 Jun 2014 10:50:33 +0200 Subject: [PATCH] Fix config.py --- config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index e833ec8..363273d 100644 --- a/config.py +++ b/config.py @@ -56,7 +56,11 @@ class Config(): def load(self): try: - initialized = make_sure_path_exists(self.config_path) + folder_exists = make_sure_path_exists(self.config_path) + if folder_exists and os.path.isfile(self.config.path + "bmc.json"): + initialized = True + else: + initialized = False except: tools.warning("Unable to create ~/.config folder.") sys.exit(1)