Files
agent-aide/aide-program/bin/aide.sh

16 lines
468 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
# 不切换目录,保持用户的工作目录
export PYTHONPATH="${PROJECT_ROOT}${PYTHONPATH:+:$PYTHONPATH}"
exec "$VENV_PY" -m aide "$@"