print setting

This commit is contained in:
Kai Wansart 2018-02-02 18:06:07 +01:00
parent 628f90940b
commit ef30197682
2 changed files with 3 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class Config(object):
##-----------------------------------------------------------------------------------## ##-----------------------------------------------------------------------------------##
path = os.path.dirname(os.path.abspath(__file__)) path = os.path.dirname(os.path.abspath(__file__))
path = path.replace('/app', '') path = path.replace('/app', '')
print(path) #print(path)
if(type == "settings"): if(type == "settings"):
print("Writing 'settings.json'") print("Writing 'settings.json'")
with open(path + '/config/settings.json', 'w') as outfile: with open(path + '/config/settings.json', 'w') as outfile:

View File

@ -11,6 +11,8 @@ class Webserver(object):
self.settings = config.read("settings") self.settings = config.read("settings")
self.devices = config.read("devices") self.devices = config.read("devices")
self.config = {} self.config = {}
print(self.settings)
print(self.devices)
##-----------------------------------------------------------------------------------## ##-----------------------------------------------------------------------------------##
def createConfig(self, module, devices, config): def createConfig(self, module, devices, config):