upgraded to use current folder's .env if present

This commit is contained in:
Saifeddine ALOUI
2025-03-25 13:45:51 +01:00
parent 4076b20582
commit 2333958a6b
2 changed files with 3 additions and 3 deletions

View File

@@ -43,12 +43,12 @@ from lightrag.kg.shared_storage import (
initialize_pipeline_status,
)
from fastapi.security import OAuth2PasswordRequestForm
from .auth import auth_handler
from lightrag.api.auth import auth_handler
# Load environment variables
# Updated to use the .env that is inside the current folder
# This update allows the user to put a different.env file for each lightrag folder
load_dotenv()
load_dotenv(".env")
# Initialize config parser
config = configparser.ConfigParser()