Use full path for poetry command in system update to ensure binary is found

- Change poetry command to use absolute path ~/.local/bin/poetry
- Add comment explaining poetry location in user's local bin directory
- Prevents command not found errors when poetry is not in system PATH
This commit is contained in:
2026-01-05 16:07:42 +01:00
parent a61d7b0868
commit 663be554df
+3 -2
View File
@@ -1037,9 +1037,10 @@ async def system_update():
log.error("git checkout failed: %s", stderr.decode())
raise HTTPException(status_code=500, detail=f"git checkout failed: {stderr.decode()}")
# 2. Run poetry install
# 2. Run poetry install (use full path as poetry is in user's ~/.local/bin)
poetry_path = os.path.expanduser("~/.local/bin/poetry")
proc = await asyncio.create_subprocess_exec(
"poetry", "install",
poetry_path, "install",
cwd=project_root,
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE