Skip to content

Commit 67fe0a4

Browse files
Search for .env in current directory.
1 parent 2b559bc commit 67fe0a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/seclab_taskflow_agent/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import argparse
77
import os
88
import sys
9-
from dotenv import load_dotenv
9+
from dotenv import load_dotenv, find_dotenv
1010
import logging
1111
from logging.handlers import RotatingFileHandler
1212
from pprint import pprint, pformat
@@ -34,7 +34,7 @@
3434
from .capi import list_tool_call_models
3535
from .available_tools import AvailableTools
3636

37-
load_dotenv()
37+
load_dotenv(find_dotenv(usecwd=True))
3838

3939
# only model output or help message should go to stdout, everything else goes to log
4040
logging.getLogger('').setLevel(logging.NOTSET)

0 commit comments

Comments
 (0)