From ea88beb68715f3d1728e0d2870f697f4630d7e15 Mon Sep 17 00:00:00 2001 From: Igor Ilic <30923996+dexters1@users.noreply.github.com> Date: Fri, 14 Feb 2025 20:40:21 +0100 Subject: [PATCH] feat: Force .env file settings over real environment variable values [COG-1333] (#537) ## Description Force .env file settings over real environment variable values ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin ## Summary by CodeRabbit - **Chores** - Refined configuration handling so that settings from your configuration file reliably take precedence over existing values, ensuring a smoother and more predictable experience. --- cognee/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cognee/__init__.py b/cognee/__init__.py index 31095f7f8..f534d3cf2 100644 --- a/cognee/__init__.py +++ b/cognee/__init__.py @@ -15,6 +15,6 @@ from .modules import pipelines try: import dotenv - dotenv.load_dotenv() + dotenv.load_dotenv(override=True) except ImportError: pass