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

Dep: Requirements.txt for AidLux

This commit is contained in:
LmeSzinc
2022-02-03 22:16:18 +08:00
parent b5dc8225c9
commit 58ffdd7b0d
6 changed files with 142 additions and 2 deletions

View File

@@ -9,6 +9,10 @@ class PipManager(DeployConfig):
def python(self):
return self.filepath("PythonExecutable")
@cached_property
def requirements_file(self):
return self.filepath("RequirementsFile")
@cached_property
def pip(self):
return f'"{self.python}" -m pip'
@@ -38,4 +42,4 @@ class PipManager(DeployConfig):
hr1('Update Dependencies')
arg = ' ' + ' '.join(arg) if arg else ''
self.execute(f'"{self.pip}" install -r requirements.txt{arg}')
self.execute(f'"{self.pip}" install -r {self.requirements_file}{arg}')