human/main.py
2024-12-09 01:20:48 +08:00

22 lines
549 B
Python

#encoding = utf8
import logging
import os
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)
render.run()
render.stop()
logger.info('------------finish------------')