hooks: boot-shim installer resolves venv python from script location — kills hardcoded /home/patrick path (POSIX + Windows aware)

This commit is contained in:
AIOSAI
2026-07-09 13:16:36 -07:00
parent 08d87d95e9
commit d0a31fd862
+6
View File
@@ -24,6 +24,12 @@ PyPI version — not the changelog header.
(`kill <pid> && claude`, `command claude --resume`) instead of a vague "kill it
first", and the wrapper no longer doubles `--permission-mode` when the user
passes it explicitly. New/updated tests, hooks suite 791 green. (built by @hooks)
- **Boot-shim installer no longer bakes a hardcoded user path.**
`install_boot_shim.sh` hardcoded `/home/patrick/Projects/AIPass/.venv/bin/python`
into the `claude()` shell function — wrong on any other machine or user. It now
resolves the venv interpreter from the script's own location (POSIX
`.venv/bin/python`, Windows/git-bash `.venv/Scripts/python.exe`, else PATH
`python3`) and bakes the correct one at install time.
## [2026-07-07]