Add mkdir
This commit is contained in:
parent
2b33aca928
commit
0e8e4601fc
1 changed files with 7 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
import logging
|
||||||
|
|
||||||
from cognee.config import Config
|
from cognee.config import Config
|
||||||
from .databases.relational import DuckDBAdapter, DatabaseEngine
|
from .databases.relational import DuckDBAdapter, DatabaseEngine
|
||||||
from .databases.vector.vector_db_interface import VectorDBInterface
|
from .databases.vector.vector_db_interface import VectorDBInterface
|
||||||
|
|
@ -44,6 +46,11 @@ class InfrastructureConfig():
|
||||||
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:
|
||||||
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)
|
||||||
|
|
||||||
self.database_engine = DuckDBAdapter(
|
self.database_engine = DuckDBAdapter(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue