very cool new stuff

This commit is contained in:
Saifeddine ALOUI
2023-06-12 23:39:22 +02:00
parent 6836028bbb
commit 4eff6cf00d
4 changed files with 8 additions and 2 deletions

View File

@ -30,6 +30,8 @@ class LollmsPaths:
self.personal_path = personal_path
self.personal_configuration_path = personal_path / "configs"
self.personal_data_path = personal_path / "data"
self.personal_databases_path = personal_path / "databases"
self.personal_models_path = personal_path / "models"
self.create_directories()
@ -42,6 +44,9 @@ class LollmsPaths:
self.personal_path.mkdir(parents=True, exist_ok=True)
self.personal_configuration_path.mkdir(parents=True, exist_ok=True)
self.personal_models_path.mkdir(parents=True, exist_ok=True)
self.personal_data_path.mkdir(parents=True, exist_ok=True)
self.personal_databases_path.mkdir(parents=True, exist_ok=True)
def copy_default_config(self):
local_config_path = self.personal_configuration_path / "local_config.yaml"

View File

@ -90,6 +90,7 @@ class APScript:
module_spec.loader.exec_module(module)
if hasattr(module, "Install"):
module.Install(self.personality,force_reinstall=force_reinstall)
def add_file(self, path):
self.files.append(path)
return True