Skip to content

Commit 169a4ef

Browse files
committed
修复没有检测py版本问题
1 parent e87633b commit 169a4ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import sys
2-
import core
3-
from core.i18n import locale
42

53
if __name__ == "__main__":
64
version = sys.version_info
7-
if version < (3, 9):
5+
from core.i18n import locale
6+
if version < (3, 12):
87
print(locale.t("main.unsupported_version",
98
cur=f"{version.major}.{version.minor}.{version.micro}"))
109
exit(0)
10+
import core
1111
core.init()

0 commit comments

Comments
 (0)