1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 05:08:19 +08:00

Opt: Patch pkg_resources for faster startup

This commit is contained in:
LmeSzinc
2024-04-15 18:43:42 +08:00
parent 31da8d42a1
commit 4858d55c46
3 changed files with 93 additions and 7 deletions

View File

@@ -1,6 +1,12 @@
import collections
from datetime import datetime
# Patch pkg_resources before importing adbutils and uiautomator2
from module.device.pkg_resources import get_distribution
# Just avoid being removed by import optimization
_ = get_distribution
from module.base.timer import Timer
from module.config.utils import get_server_next_update
from module.device.app_control import AppControl