Merge pull request #1185 from ParisNeo/main
upgraded to use current folder's .env if present
This commit is contained in:
@@ -43,12 +43,12 @@ from lightrag.kg.shared_storage import (
|
|||||||
initialize_pipeline_status,
|
initialize_pipeline_status,
|
||||||
)
|
)
|
||||||
from fastapi.security import OAuth2PasswordRequestForm
|
from fastapi.security import OAuth2PasswordRequestForm
|
||||||
from .auth import auth_handler
|
from lightrag.api.auth import auth_handler
|
||||||
|
|
||||||
# Load environment variables
|
# Load environment variables
|
||||||
# Updated to use the .env that is inside the current folder
|
# 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
|
# This update allows the user to put a different.env file for each lightrag folder
|
||||||
load_dotenv()
|
load_dotenv(".env")
|
||||||
|
|
||||||
# Initialize config parser
|
# Initialize config parser
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
|
@@ -13,7 +13,7 @@ from dotenv import load_dotenv
|
|||||||
|
|
||||||
# Updated to use the .env that is inside the current folder
|
# 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
|
# This update allows the user to put a different.env file for each lightrag folder
|
||||||
load_dotenv()
|
load_dotenv(".env")
|
||||||
|
|
||||||
|
|
||||||
def check_and_install_dependencies():
|
def check_and_install_dependencies():
|
||||||
|
Reference in New Issue
Block a user