docs(so-api): [31188f42] Diagnosis of email sending blockade & cleanup
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
# Explicitly load .env from the project root.
|
||||
# CRITICAL: override=True ensures we read from the .env file even if
|
||||
# stale env vars are present in the shell process.
|
||||
dotenv_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '.env'))
|
||||
if os.path.exists(dotenv_path):
|
||||
load_dotenv(dotenv_path=dotenv_path, override=True)
|
||||
|
||||
class Settings:
|
||||
def __init__(self):
|
||||
|
||||
Reference in New Issue
Block a user