13 lines
329 B
Bash
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
|