+
    i%                        R t ^ RIHt ^ RIt^ RIHt ^ RIHt ]! ]4      P                  4       P                  P                  P                  t]P                  tR R ltR# )u  Stable .env loading for MCube and agent_runtime processes.

Historically, modules used ``load_dotenv(".env.local")``, which only works when the
process cwd is ``agent_runtime/``. This module loads from fixed paths:

1. ``backend/.env`` — same file Django uses (shared secrets / MCube vars)
2. ``backend/agent_runtime/.env.local`` — optional overrides (wins on duplicate keys)

Set ``AGENT_RUNTIME_ENV_FILE`` to an absolute path to load only that file
(``override=True``), for ad-hoc testing.
)annotationsN)Path)load_dotenvc                   V ^8  d   QhRR/# )   returnNone )formats   "ZE:\live-kit-agent\livekit_voicebot\backend\agent_runtime\src\mcube_integration\env_load.py__annotate__r      s     C C4 C    c                     \         P                  ! R R4      P                  4       p V '       d   \        \	        V 4      RR7       R# \        \
        R,          RR7       \        \        R,          RR7       R# )AGENT_RUNTIME_ENV_FILE T)overrideNz.envFz
.env.local)osgetenvstripr   r   _BACKEND_ROOT_AGENT_RUNTIME_ROOT)explicits    r   load_agent_runtime_dotenvr      sO    yy126<<>HDNT2&7#l2TBr   )__doc__
__future__r   r   pathlibr   dotenvr   __file__resolveparentr   r   r   r	   r   r   <module>r       sN   
 # 	  8n,,.55<<CC #**Cr   