mirror of
https://github.com/TauricResearch/TradingAgents.git
synced 2026-09-27 06:56:39 +03:00
- is_yahoo_safe, has_checkpoint, get_wall_times, the graph's curr_state and the project_dir config key - the CLI's final_report and current_agent state, its duplicate get_analysis_date and the save_report_to_disk wrapper - the dotenv import guard (a hard dependency) and a warning filter for langgraph-checkpoint 4.0.3
10 lines
520 B
Python
10 lines
520 B
Python
from dotenv import find_dotenv, load_dotenv
|
|
|
|
# Load .env at package import so DEFAULT_CONFIG's env-var overlay and every LLM
|
|
# client see the user's keys whichever entry point started the process.
|
|
# usecwd=True walks from the working directory, so the installed console script
|
|
# finds the project's .env rather than looking beside site-packages. Values the
|
|
# caller has already exported are never overridden.
|
|
load_dotenv(find_dotenv(usecwd=True))
|
|
load_dotenv(find_dotenv(".env.enterprise", usecwd=True), override=False)
|