fix: use hermes_constants.get_hermes_home() for Windows path

This commit is contained in:
2026-06-12 19:10:49 +00:00
parent 587aebe8b9
commit 90af41044b

View File

@@ -20,7 +20,12 @@ from typing import Optional
def _hermes_home() -> Path: def _hermes_home() -> Path:
import os import os
return Path(os.environ.get("HERMES_HOME", os.path.expanduser("~/.hermes"))) # Windows'ta Hermes %LOCALAPPDATA%\hermes kullanir, ~/.hermes degil
try:
from hermes_constants import get_hermes_home
return Path(get_hermes_home())
except ImportError:
return Path(os.environ.get("HERMES_HOME", os.path.expanduser("~/.hermes")))
def _as_float(v): def _as_float(v):