
    xjD                    \    d Z ddlmZ ddlZddlmZ 	 ddlmZ dS # ee	f$ r d	dZY dS w xY w)
a  Resolve HERMES_HOME for standalone skill scripts.

Skill scripts may run outside the Hermes process (system Python, nix env,
CI) where ``hermes_constants`` is not importable.  This module provides the
same ``get_hermes_home()`` contract without requiring it on ``sys.path``.

When ``hermes_constants`` IS available it is used directly so profile
resolution and any future enhancements are picked up automatically.
    )annotationsN)Path)get_hermes_homereturnr   c                     t           j                            dd                                          } | rt	          |           nt	          j                    dz  S )z:Return the Hermes home directory (default: ``~/.hermes``).HERMES_HOME z.hermes)osenvirongetstripr   home)vals    N/home/agent/.hermes/skills/research/grounded-citations/scripts/_hermes_home.pyr   r      sC    jnn]B//5577<tCyyyTY[[9%<<    )r   r   )
__doc__
__future__r   r
   pathlibr   hermes_constantsr   ModuleNotFoundErrorImportError r   r   <module>r      s     # " " " " " 				      =CCCCCCCC[) = = == = = = = = ==s    ++