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'")