fix: use hermes_constants.get_hermes_home() for Windows path

This commit is contained in:
git_alhan committed 2026-06-12 19:10:49 +00:00
1 parent 587aebe8b9
commit 90af41044b
1 file changed
+5
+5
View File
@@ -20,6 +20,11 @@ from typing import Optional
def _hermes_home() -> Path: def _hermes_home() -> Path:
import os import os
# 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"))) return Path(os.environ.get("HERMES_HOME", os.path.expanduser("~/.hermes")))