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

Fix: Use adb, git, python in system if the one in deploy.yaml doesn't exists

This commit is contained in:
LmeSzinc
2024-05-19 23:20:33 +08:00
parent 307c9e75f5
commit bf3a08b446
3 changed files with 20 additions and 3 deletions

View File

@@ -20,7 +20,12 @@ def show_fix_tip(module):
class AdbManager(DeployConfig):
@cached_property
def adb(self):
return self.filepath('AdbExecutable')
exe = self.filepath('AdbExecutable')
if os.path.exists(exe):
return exe
logger.warning(f'AdbExecutable: {exe} does not exist, use `adb` instead')
return 'adb'
def adb_install(self):
logger.hr('Start ADB service', 0)