Compare commits

..

1 Commits

Author SHA1 Message Date
Alexander Whitestone
f32d33836f fix: remove hardcoded ~/.hermes paths from optional skills
Some checks failed
Forge CI / smoke-and-build (pull_request) Failing after 1m7s
Fix memento_cards.py and telephony.py to use HERMES_HOME env var
with Path.home() fallback instead of hardcoded "~/.hermes".

Leaves migration script as-is (intentionally references old paths).

Closes #479
2026-04-13 21:32:47 -04:00
3 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ def get_hermes_home() -> Path:
Reads HERMES_HOME env var, falls back to ~/.hermes.
This is the single source of truth — all other copies should import this.
"""
return Path(os.getenv("HERMES_HOME", str(Path.home() / ".hermes"))).expanduser()
return Path(os.getenv("HERMES_HOME", Path.home() / ".hermes"))
def get_optional_skills_dir(default: Path | None = None) -> Path:

View File

@@ -15,7 +15,7 @@ import uuid
from datetime import datetime, timedelta, timezone
from pathlib import Path
_HERMES_HOME = Path(os.environ.get("HERMES_HOME", Path.home() / ".hermes"))
_HERMES_HOME = Path(os.environ.get("HERMES_HOME", str(Path.home() / ".hermes")))
DATA_DIR = _HERMES_HOME / "skills" / "productivity" / "memento-flashcards" / "data"
CARDS_FILE = DATA_DIR / "cards.json"

View File

@@ -69,7 +69,7 @@ class OwnedTwilioNumber:
def _hermes_home() -> Path:
return Path(os.environ.get("HERMES_HOME", "~/.hermes")).expanduser()
return Path(os.environ.get("HERMES_HOME", str(Path.home() / ".hermes")))
def _env_path() -> Path: