Skip to content

Commit

Permalink
Add dotenv support
Browse files Browse the repository at this point in the history
  • Loading branch information
nivcertora committed Dec 30, 2024
1 parent 39364e7 commit 80954bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Quorum/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export ETHSCAN_API_KEY="your_etherscan_api_key"
export ANTHROPIC_API_KEY="your_anthropic_api_key"
3 changes: 3 additions & 0 deletions Quorum/config.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import os
import shutil
from pathlib import Path
import dotenv

import Quorum.utils.pretty_printer as pp

dotenv.load_dotenv(override=True)

main_path = os.getenv("QUORUM_PATH")
if not main_path:
raise ValueError("QUORUM_PATH environment variable not set")
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ jinja2
langchain-anthropic
langgraph
langchain_community
dotenv

0 comments on commit 80954bd

Please sign in to comment.