human/main.py
2024-12-24 07:37:03 +08:00

24 lines
626 B
Python

#encoding = utf8
import logging
import os
from action_handler import ActionManager
from human import HumanContext
from ui import IpcRender
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------------')
context = HumanContext()
render = IpcRender(context)
context.build(render)
action_manger = ActionManager()
render.run()
render.stop()
logger.info('------------finish------------')