2024-12-02 16:14:00 +00:00
|
|
|
#encoding = utf8
|
|
|
|
|
|
|
|
import logging
|
|
|
|
import os
|
|
|
|
|
2024-12-23 23:37:03 +00:00
|
|
|
from action_handler import ActionManager
|
2024-12-08 17:20:48 +00:00
|
|
|
from human import HumanContext
|
2024-12-03 18:07:18 +00:00
|
|
|
from ui import IpcRender
|
2024-12-02 16:14:00 +00:00
|
|
|
from utils import config_logging
|
|
|
|
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
current_file_path = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
config_logging('./logs/info.log', logging.INFO, logging.INFO)
|
|
|
|
|
|
|
|
logger.info('------------start------------')
|
2024-12-08 17:20:48 +00:00
|
|
|
context = HumanContext()
|
|
|
|
render = IpcRender(context)
|
|
|
|
context.build(render)
|
2024-12-23 23:37:03 +00:00
|
|
|
action_manger = ActionManager()
|
2024-12-03 18:07:18 +00:00
|
|
|
render.run()
|
2024-12-04 16:47:17 +00:00
|
|
|
render.stop()
|
2024-12-02 16:14:00 +00:00
|
|
|
logger.info('------------finish------------')
|