#!/bin/sh

# get current directory (where this script is located)
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"

# run ispeak interactive mode
if [ -e "${SCRIPT_DIR}/.venv/bin/python" ]; then
  "${SCRIPT_DIR}/.venv/bin/python" "${SCRIPT_DIR}/main.py" "$@"
else
  uv run "${SCRIPT_DIR}/main.py" "$@"
fi
