feat: 添加 python 版本检查

This commit is contained in:
Junyan Qin 2024-10-22 18:17:09 +08:00
parent c151665419
commit a4589327a6
No known key found for this signature in database
GPG Key ID: 8AC0BEFE1743A015

View File

@ -54,6 +54,13 @@ async def main_entry(loop: asyncio.AbstractEventLoop):
if __name__ == '__main__':
import os
import sys
# 必须大于 3.10.1
if sys.version_info < (3, 10, 1):
print("需要 Python 3.10.1 及以上版本,当前 Python 版本为:", sys.version)
input("按任意键退出...")
exit(1)
# 检查本目录是否有main.py且包含QChatGPT字符串
invalid_pwd = False