Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/specify_cli/integrations/hermes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from __future__ import annotations

import os
from pathlib import Path
from shutil import rmtree
from typing import Any
Expand Down Expand Up @@ -55,7 +56,12 @@ class HermesIntegration(SkillsIntegration):

@staticmethod
def _hermes_home_skills_dir() -> Path:
"""Return ``~/.hermes/skills/`` — the global skills directory."""
"""Return the Hermes skills directory, respecting ``$HERMES_HOME``
for profile-mode installations.
"""
hermes_home = os.environ.get("HERMES_HOME")
if hermes_home:
return Path(hermes_home) / "skills"
return Path.home() / ".hermes" / "skills"

# -- Options -----------------------------------------------------------
Expand Down