docs(windows): fix Get-Command PATH guidance to venv\Scripts\hermes.exe (#40613)

Closes #40464.

Salvaged from #40488; re-verified on main, tightened, tested.

Co-authored-by: gauravsaxena1997 <gauravsaxena1997@users.noreply.github.com>
This commit is contained in:
Teknium 2026-06-07 18:28:23 -07:00 committed by GitHub
parent 4ce9caed04
commit 2aa316ec9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 67 additions and 53 deletions

View file

@ -0,0 +1,10 @@
from pathlib import Path
def test_windows_native_install_path_docs_match_installer() -> None:
doc = Path("website/docs/user-guide/windows-native.md").read_text()
install = Path("scripts/install.ps1").read_text()
assert "%LOCALAPPDATA%\\hermes\\hermes-agent\\venv\\Scripts" in doc
assert "Get-Command hermes # should print C:\\Users\\<you>\\AppData\\Local\\hermes\\hermes-agent\\venv\\Scripts\\hermes.exe" in doc
assert '$hermesBin = "$InstallDir\\venv\\Scripts"' in install