Files
agent-aide/aide-program/aide.sh
2025-12-13 05:01:28 +08:00

16 lines
452 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
VENV_PY="${PROJECT_ROOT}/.venv/bin/python"
if [ ! -x "$VENV_PY" ]; then
echo "✗ 未找到虚拟环境请先运行uv venv .venv && uv pip install -r requirements.txt" >&2
exit 1
fi
cd "$PROJECT_ROOT"
export PYTHONPATH="${PROJECT_ROOT}/aide-program${PYTHONPATH:+:$PYTHONPATH}"
exec "$VENV_PY" -m aide "$@"