|  | @@ -2,6 +2,11 @@
 | 
	
		
			
			| 2 | 2 |  import os
 | 
	
		
			
			| 3 | 3 |  import sys
 | 
	
		
			
			| 4 | 4 |  
 | 
	
		
			
			|  | 5 | +import logging
 | 
	
		
			
			|  | 6 | +
 | 
	
		
			
			|  | 7 | +from synergine2.config import Config
 | 
	
		
			
			|  | 8 | +from synergine2.log import get_default_logger
 | 
	
		
			
			|  | 9 | +
 | 
	
		
			
			| 5 | 10 |  synergine2_ath = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../'))
 | 
	
		
			
			| 6 | 11 |  sys.path.append(synergine2_ath)
 | 
	
		
			
			| 7 | 12 |  
 | 
	
	
		
			
			|  | @@ -126,10 +131,23 @@ def main():
 | 
	
		
			
			| 126 | 131 |      )
 | 
	
		
			
			| 127 | 132 |      simulation.subjects = subjects
 | 
	
		
			
			| 128 | 133 |  
 | 
	
		
			
			|  | 134 | +    config = Config()
 | 
	
		
			
			|  | 135 | +    logger = get_default_logger(level=logging.DEBUG)
 | 
	
		
			
			|  | 136 | +
 | 
	
		
			
			| 129 | 137 |      core = Core(
 | 
	
		
			
			|  | 138 | +        config=config,
 | 
	
		
			
			|  | 139 | +        logger=logger,
 | 
	
		
			
			| 130 | 140 |          simulation=simulation,
 | 
	
		
			
			| 131 |  | -        cycle_manager=CycleManager(simulation=simulation),
 | 
	
		
			
			| 132 |  | -        terminal_manager=TerminalManager([CocosTerminal(), SimplePrintTerminal()]),
 | 
	
		
			
			|  | 141 | +        cycle_manager=CycleManager(
 | 
	
		
			
			|  | 142 | +            config=config,
 | 
	
		
			
			|  | 143 | +            logger=logger,
 | 
	
		
			
			|  | 144 | +            simulation=simulation,
 | 
	
		
			
			|  | 145 | +        ),
 | 
	
		
			
			|  | 146 | +        terminal_manager=TerminalManager(
 | 
	
		
			
			|  | 147 | +            config=config,
 | 
	
		
			
			|  | 148 | +            logger=logger,
 | 
	
		
			
			|  | 149 | +            terminals=[CocosTerminal(), SimplePrintTerminal()]
 | 
	
		
			
			|  | 150 | +        ),
 | 
	
		
			
			| 133 | 151 |      )
 | 
	
		
			
			| 134 | 152 |      core.run()
 | 
	
		
			
			| 135 | 153 |  
 |