Skip to content

Commit 6989b31

Browse files
committed
fix(scripts): add load_dotenv to human_query_test
1 parent 2655a90 commit 6989b31

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

backend/scripts/human_query_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010

1111
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
1212

13+
# Load .env file if present
14+
try:
15+
from dotenv import load_dotenv
16+
load_dotenv()
17+
except ImportError:
18+
pass # dotenv not installed, rely on exported env vars
19+
1320
# Load from environment (set in .env or export manually)
1421
if not os.environ.get("VOYAGE_API_KEY"):
1522
print("❌ VOYAGE_API_KEY not set. Export it or add to .env file.")

0 commit comments

Comments
 (0)