fix: use hermes_constants.get_hermes_home() for Windows path
This commit is contained in:
1 parent
587aebe8b9
commit
90af41044b
1 file changed
+5
@@ -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")))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user