Add mkdir
This commit is contained in:
parent
0e8e4601fc
commit
45ce4684ea
1 changed files with 5 additions and 4 deletions
|
|
@ -44,12 +44,13 @@ class InfrastructureConfig():
|
||||||
|
|
||||||
def get_config(self, config_entity: str = None) -> dict:
|
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 (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
|
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)
|
LocalStorage.ensure_directory_exists(db_path)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue