Files
teams-bot/scripts/run_main.sh
T
2025-11-16 01:14:02 -05:00

13 lines
329 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# Change to the repository root (one level up from this script's directory)
cd "$(dirname "$0")/.."
# Prefer uv if available (uses pyproject.toml/uv.lock), otherwise fall back to system Python.
if command -v uv >/dev/null 2>&1; then
uv run python -u main.py
else
python3 -u main.py
fi