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