From 2ba06cc98ca3728c7a31d764cf164b4391194085 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 27 Jun 2025 14:32:06 +0200 Subject: [PATCH] refactor: solve json serializable issue --- cognee/infrastructure/databases/graph/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cognee/infrastructure/databases/graph/config.py b/cognee/infrastructure/databases/graph/config.py index fbd296f68..5e4316d3b 100644 --- a/cognee/infrastructure/databases/graph/config.py +++ b/cognee/infrastructure/databases/graph/config.py @@ -1,6 +1,6 @@ """This module contains the configuration for the graph database.""" -from pathlib import Path +import os from functools import lru_cache from pydantic_settings import BaseSettings, SettingsConfigDict import pydantic @@ -55,8 +55,8 @@ class GraphConfig(BaseSettings): values.graph_filename = f"cognee_graph_{provider}" # Set file path based on graph database provider if no file path is provided if not values.graph_file_path: - base = Path(get_absolute_path(".cognee_system")) / "databases" - values.graph_file_path = base / values.graph_filename + base = os.path.join(get_absolute_path(".cognee_system"), "databases") + values.graph_file_path = os.path.join(base, values.graph_filename) return values def to_dict(self) -> dict: