pyc • Lines: 44�
�K�j# � �2 � d Z ddlZddlmZ dd�Z e� y)u� Minimal ``.env`` loader (stdlib only — no external dependency).
Reads a ``KEY=VALUE`` file from the repo root into ``os.environ`` so every
entrypoint (``chat-webui.py``, ``self-chat.py``, ``markdown_hosting.py``)
sees the same settings whether it is launched by hand, systemd or cron.
Only values that are NOT already exported by the real environment are applied,
so a systemd ``EnvironmentFile`` or the shell always wins over the ``.env``.
� N)�Pathc �T � | �4t t � j � j j dz } t | � } | j � syd}| j � j
� D ]� }|j � }|r|j d� sd|vr�+|j d� \ }}}|j � }|j � }|s�ct |� dk\ r|d |d k( r|d dv r|d d }|s��|t j vs��|t j |<