Files
iOSAI/Module/Main.py

17 lines
394 B
Python
Raw Normal View History

import time
2025-08-01 13:43:51 +08:00
from Module.DeviceInfo import Deviceinfo
from Module.FlaskSubprocessManager import FlaskSubprocessManager
2025-08-06 22:11:33 +08:00
from Utils.LogManager import LogManager
2025-08-01 13:43:51 +08:00
2025-08-11 22:06:48 +08:00
# 项目入口
2025-08-01 13:43:51 +08:00
if __name__ == "__main__":
2025-08-11 22:06:48 +08:00
# 清空日志
2025-08-06 22:11:33 +08:00
LogManager.clearLogs()
time.sleep(1)
2025-08-06 22:11:33 +08:00
2025-08-01 13:43:51 +08:00
manager = FlaskSubprocessManager.get_instance()
manager.start()
info = Deviceinfo()
info.startDeviceListener()