Made config-var global
This commit is contained in:
		
							parent
							
								
									14e531256b
								
							
						
					
					
						commit
						bc61e3f60f
					
				@ -16,6 +16,7 @@ def main(args):
 | 
				
			|||||||
    setupLogging(True)
 | 
					    setupLogging(True)
 | 
				
			||||||
    log.debug("Logging started")
 | 
					    log.debug("Logging started")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    global config
 | 
				
			||||||
    config = readConfig("config.yml")
 | 
					    config = readConfig("config.yml")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    s = setupSocket(config['socket']['address'], config['socket']['port'])
 | 
					    s = setupSocket(config['socket']['address'], config['socket']['port'])
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user