| 
					
				 | 
			
			
				@@ -46,19 +46,10 @@ def start_all_services(serve_client, work_path): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     logger.info('server running') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     while True: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         time.sleep(10) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        a = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 if __name__ == "__main__": 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if not os.path.exists('/opt/ProgramData/OfficeAssistant/config.json'): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        logger.error('"config.json" is not find') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        sys.exit(0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    # 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    with open('/opt/ProgramData/OfficeAssistant/config.json', 'r', encoding='utf-8') as f: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    # with open(f'config.json', 'r', encoding='utf-8') as f: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        args = json.load(f) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    args['worker_path'] = args['worker_path'].replace('\\\\', '\\') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if not (args.get('username') and args.get('password')): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         logger.error('The config is missing critical information') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         sys.exit(0) 
			 |