try few things
This commit is contained in:
parent
86c8304f43
commit
59d433a657
1 changed files with 5 additions and 4 deletions
|
|
@ -45,10 +45,7 @@ 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
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -101,6 +98,10 @@ class InfrastructureConfig():
|
||||||
if (config_entity is None or config_entity == "database_directory_path") and self.database_directory_path is None:
|
if (config_entity is None or config_entity == "database_directory_path") and self.database_directory_path is None:
|
||||||
self.database_directory_path = self.system_root_directory + "/" + config.db_path
|
self.database_directory_path = self.system_root_directory + "/" + config.db_path
|
||||||
|
|
||||||
|
if self.system_root_directory is None:
|
||||||
|
self.system_root_directory = "/Users/runner/work/cognee/cognee/.cognee_system"
|
||||||
|
|
||||||
|
|
||||||
if self.database_directory_path is None:
|
if self.database_directory_path is None:
|
||||||
self.database_directory_path = self.system_root_directory + "/" + config.db_path
|
self.database_directory_path = self.system_root_directory + "/" + config.db_path
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue