human/main.py
2025-01-07 21:52:15 +08:00

27 lines
739 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)
print(current_file_path)
logger.info('------------start------------')
context = HumanContext()
render = IpcRender(context)
context.build(render)
action_manger = ActionManager()
# action_manger.ppt_action.open(f'{current_file_path}/data/ppt/test_ppt.pptx')
render.run()
render.stop()
logger.info('------------finish------------')