switched to uv

This commit is contained in:
Yanxin Lu
2026-02-27 07:34:07 -08:00
parent e8c8256967
commit cf115bb48a
7 changed files with 12 additions and 22 deletions

View File

@@ -12,15 +12,10 @@
# ./email-processor.sh review accept # accept all suggestions
# ./email-processor.sh stats # show history stats
#
# Requires: Python 3.8+, himalaya, Ollama running with model.
# Requires: uv, himalaya, Ollama running with model.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# Activate the virtualenv if it exists
if [ -d "$SCRIPT_DIR/venv" ]; then
source "$SCRIPT_DIR/venv/bin/activate"
fi
exec python3 "$SCRIPT_DIR/main.py" "$@"
exec uv run --project "$SCRIPT_DIR" python "$SCRIPT_DIR/main.py" "$@"