File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 3434from ..sessions .in_memory_session_service import InMemorySessionService
3535from ..sessions .session import Session
3636from ..utils .context_utils import Aclosing
37+ from ..utils .env_utils import is_env_enabled
3738from .utils import envs
3839from .utils .agent_loader import AgentLoader
3940
@@ -160,7 +161,8 @@ async def run_cli(
160161 root_agent = AgentLoader (agents_dir = agent_parent_dir ).load_agent (
161162 agent_folder_name
162163 )
163- envs .load_dotenv_for_agent (agent_folder_name , agent_parent_dir )
164+ if not is_env_enabled ('ADK_DISABLE_LOAD_DOTENV' ):
165+ envs .load_dotenv_for_agent (agent_folder_name , agent_parent_dir )
164166 if input_file :
165167 session = await run_input_file (
166168 app_name = agent_folder_name ,
You can’t perform that action at this time.
0 commit comments