#!/bin/sh
set -eu
ROOT="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
ARCH="$(uname -m)"
case "$ARCH" in
  arm64|aarch64) exec "$ROOT/python-arm64/bin/python3" "$@" ;;
  x86_64) exec "$ROOT/python-x86_64/bin/python3" "$@" ;;
  *) exec "$ROOT/python-arm64/bin/python3" "$@" ;;
esac
