mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Fix: Use adb, git, python in system if the one in deploy.yaml doesn't exists
This commit is contained in:
@@ -7,7 +7,12 @@ from deploy.utils import *
|
||||
class GitManager(DeployConfig):
|
||||
@cached_property
|
||||
def git(self):
|
||||
return self.filepath('GitExecutable')
|
||||
exe = self.filepath('GitExecutable')
|
||||
if os.path.exists(exe):
|
||||
return exe
|
||||
|
||||
logger.warning(f'GitExecutable: {exe} does not exist, use `git` instead')
|
||||
return 'git'
|
||||
|
||||
@staticmethod
|
||||
def remove(file):
|
||||
|
||||
Reference in New Issue
Block a user