From e42829286119be3cbb976d3beac9633755ac3f8f Mon Sep 17 00:00:00 2001 From: Kai Wansart Date: Fri, 2 Feb 2018 17:54:28 +0100 Subject: [PATCH] Fix Path --- app/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/config.py b/app/config.py index e46f9d7..f2f1d93 100644 --- a/app/config.py +++ b/app/config.py @@ -34,7 +34,7 @@ class Config(object): ##-----------------------------------------------------------------------------------## def read(self, type): ##-----------------------------------------------------------------------------------## - path = os.getcwd() + path = os.path.dirname(os.path.abspath(__file__)) data = None if(type == "settings"): print("Reading 'settings.json'") @@ -69,7 +69,7 @@ class Config(object): ##-----------------------------------------------------------------------------------## def writeConfig(self, type, data): ##-----------------------------------------------------------------------------------## - path = os.getcwd() + path = os.path.dirname(os.path.abspath(__file__)) print(path) if(type == "settings"): print("Writing 'settings.json'")