view third_party/mercurial/hg.sh @ 261:b401627fc49e

Add JRPG mock flows and interactive previews Add scripted mock SSE commands, custom event forwarding, animated chat turns, full-height message navigation, and a cyberpunk resume dossier. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <mrjunejune@users.noreply.github.com>
date Wed, 05 Aug 2026 20:38:32 -0700
parents c5129452493e
children
line wrap: on
line source

#!/bin/sh
set -eu

runtime_root="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
python_binary="${PYTHON_BIN:-python3.11}"
if ! command -v "$python_binary" >/dev/null 2>&1; then
  echo "Mercurial requires CPython 3.11: $python_binary was not found." >&2
  exit 1
fi
if [ "$("$python_binary" -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')" != "3.11" ]; then
  echo "Mercurial requires CPython 3.11." >&2
  exit 1
fi
export PYTHONPATH="$runtime_root${PYTHONPATH:+:$PYTHONPATH}"
exec "$python_binary" -m mercurial "$@"