From ef30197682bb48c5836ca72f3c583dd6d686d173 Mon Sep 17 00:00:00 2001 From: Kai Wansart Date: Fri, 2 Feb 2018 18:06:07 +0100 Subject: [PATCH] print setting --- app/config.py | 2 +- app/webserver.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index bbc1112..afd9129 100644 --- a/app/config.py +++ b/app/config.py @@ -71,7 +71,7 @@ class Config(object): ##-----------------------------------------------------------------------------------## path = os.path.dirname(os.path.abspath(__file__)) path = path.replace('/app', '') - print(path) + #print(path) if(type == "settings"): print("Writing 'settings.json'") with open(path + '/config/settings.json', 'w') as outfile: diff --git a/app/webserver.py b/app/webserver.py index f215ff8..ebc81be 100644 --- a/app/webserver.py +++ b/app/webserver.py @@ -11,6 +11,8 @@ class Webserver(object): self.settings = config.read("settings") self.devices = config.read("devices") self.config = {} + print(self.settings) + print(self.devices) ##-----------------------------------------------------------------------------------## def createConfig(self, module, devices, config):