-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorchestrator
More file actions
executable file
·29 lines (25 loc) · 995 Bytes
/
Copy pathorchestrator
File metadata and controls
executable file
·29 lines (25 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# Orchestrator CLI wrapper script
# This script can be copied to ~/bin/ or any directory in your PATH
# Full paths to project and virtual environment
PROJECT_DIR="/home/chenry/projects/ClaudeProjects/AgenticOrchestrationSystem"
VENV_DIR="/home/chenry/VirtualEnvironments/agentic-orchestration-system-py3.12"
ACTIVATE_SCRIPT="${PROJECT_DIR}/activate.sh"
# Check if the correct virtual environment is activated
if [ -z "${VIRTUAL_ENV}" ] || [ "${VIRTUAL_ENV}" != "${VENV_DIR}" ]; then
# Not activated or wrong environment, activate it
if [ -f "${ACTIVATE_SCRIPT}" ]; then
source "${ACTIVATE_SCRIPT}"
else
echo "Error: activate.sh not found at ${ACTIVATE_SCRIPT}" >&2
exit 1
fi
fi
# Set PYTHONPATH to include the project directory
if [ -n "${PYTHONPATH:-}" ]; then
export PYTHONPATH="${PROJECT_DIR}:${PYTHONPATH}"
else
export PYTHONPATH="${PROJECT_DIR}"
fi
# Run the CLI with all arguments passed through
exec python3 -m src.cli "$@"