#!/usr/bin/env bash # Linux/macOS wrapper — launches the cross-platform installer wizard. # Usage: bash install.sh set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" # Find Python 3.9+ PYTHON="" for candidate in python3 python; do if command -v "$candidate" &>/dev/null; then major_minor=$("$candidate" -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')") major=$("$candidate" -c "import sys; print(sys.version_info.major)") minor=$("$candidate" -c "import sys; print(sys.version_info.minor)") if [ "$major" -ge 3 ] && [ "$minor" -ge 9 ]; then PYTHON="$candidate" break fi fi done if [ -z "$PYTHON" ]; then echo "ERROR: Python 3.9+ is required to run the installer." echo "Install Python 3.9+ and try again." exit 1 fi exec "$PYTHON" "$SCRIPT_DIR/install_wizard.py"