Fix config.py

This commit is contained in:
Phyks 2014-06-30 10:50:33 +02:00
parent 6353818c83
commit 67611ab648
1 changed files with 5 additions and 1 deletions

View File

@ -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)