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
2 changed files with 2 additions and 2 deletions

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: