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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user