diff --git a/contributors/emails/seraphine@Seraphines-Mac-Studio.local b/contributors/emails/seraphine@Seraphines-Mac-Studio.local new file mode 100644 index 000000000000..55d62986543e --- /dev/null +++ b/contributors/emails/seraphine@Seraphines-Mac-Studio.local @@ -0,0 +1,2 @@ +Bartok9 +# Seraphine Mac Studio local email on Bartok9 PR tips (per-PR attribution; Teknium/Daniel 2026-08-01) diff --git a/hermes_constants.py b/hermes_constants.py index ac93c8da351a..12319740822d 100644 --- a/hermes_constants.py +++ b/hermes_constants.py @@ -672,7 +672,12 @@ def display_hermes_home() -> str: """ home = get_hermes_home() try: - return "~/" + str(home.relative_to(Path.home())) + # ``as_posix()`` keeps the separator style consistent with the ``~/`` + # prefix. On Windows ``str(WindowsPath(...))`` uses backslashes, which + # would render a mixed path like ``~/AppData\Local\hermes`` (POSIX + # ``~/`` joined to a Windows tail). ``as_posix()`` yields + # ``~/AppData/Local/hermes`` so the whole display string is uniform. + return "~/" + home.relative_to(Path.home()).as_posix() except ValueError: return str(home)