fix(cron): prepend Nix profile to PATH so tea and claude are found
Cron runs with a minimal environment that doesn't include ~/.nix-profile/bin, causing every invocation to crash with FileNotFoundError on 'tea'. Closes #93
This commit is contained in:
@@ -26,6 +26,9 @@ import sys
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
|
||||
# Cron runs with a minimal PATH; ensure Nix profile binaries (tea, claude) are found.
|
||||
os.environ["PATH"] = f"/home/si/.nix-profile/bin:{os.environ.get('PATH', '/usr/bin:/bin')}"
|
||||
|
||||
# ── configuration ─────────────────────────────────────────────────────────────
|
||||
|
||||
REPO = "guettli/sharedinbox"
|
||||
|
||||
Reference in New Issue
Block a user