#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-3.0-or-later """Shim: famicom-python's Mesen2 ctypes driver, kept at its old path and command line. The code now lives in the Mesen2 tool (``../mesen2``, module ``mesen2_runner.compat.famicom_run``); this file loads it so the consumer's scripts, which import this file or run it by path, work as before. Moving off it: ``docs/consumer-migration.md``. """ import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "mesen2")) from mesen2_runner.compat.famicom_run import * # noqa: E402,F403 from mesen2_runner.compat.famicom_run import main # noqa: E402 if __name__ == "__main__": raise SystemExit(main() & 0xFF)