print setting
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
@@ -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):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user