Compute Node Installation Wizard

Compute Node Installation Wizardx# Date:      Fri Dec 1 09:26:55 2023 +0000
This commit is contained in:
streetycat
2023-12-01 09:26:55 +00:00
committed by zhangzhen
parent eb67980537
commit a001706752
5 changed files with 336 additions and 32 deletions
+7 -2
View File
@@ -216,6 +216,13 @@ class AIStorage:
~/myai/
"""
return Path.home() / "myai"
def get_download_dir(self) -> str:
"""
download dir is the dir for user to store the files downloaded with the system.
~/myai/download
"""
return f"{self.get_myai_dir()}/download"
def get_db(self,app_name:str)->ResourceLocation:
pass
@@ -242,5 +249,3 @@ class AIStorage:
except Exception as e:
logger.error(f"open or create file {path} failed! {str(e)}")