#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------------')