From 45ce4684ea5d099ef4c105bb76ddaa3e02843e64 Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Sat, 25 May 2024 14:10:38 +0200 Subject: [PATCH] Add mkdir --- cognee/infrastructure/InfrastructureConfig.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cognee/infrastructure/InfrastructureConfig.py b/cognee/infrastructure/InfrastructureConfig.py index 62f7b13e0..01a532c8e 100644 --- a/cognee/infrastructure/InfrastructureConfig.py +++ b/cognee/infrastructure/InfrastructureConfig.py @@ -44,12 +44,13 @@ class InfrastructureConfig(): def get_config(self, config_entity: str = None) -> dict: if (config_entity is None or config_entity == "database_engine") and self.database_engine is None: + + if self.system_root_directory is None: + self.system_root_directory ='/Users/runner/work/cognee/cognee/.cognee_system' + if config.db_path is None: + config.db_path = "databases" db_path = self.system_root_directory + "/" + config.db_path - print("root_dir: ", self.system_root_directory) - print("config.db_path: ", config.db_path) - logging.info("db_path: %s", db_path) - logging.info("db_name: %s", self.system_root_directory) LocalStorage.ensure_directory_exists(db_path)