#!/usr/bin/env python3
"""Thin launcher for tg-mpv, usable without installation.

Adds the project root to sys.path so `tg_mpv` is importable even when this
script is run directly from a source checkout (e.g. ./bin/tg-mpv "query").
"""
import os
import sys

_THIS_DIR = os.path.dirname(os.path.abspath(__file__))
_PROJECT_ROOT = os.path.dirname(_THIS_DIR)
if _PROJECT_ROOT not in sys.path:
    sys.path.insert(0, _PROJECT_ROOT)

from tg_mpv.cli import main  # noqa: E402

if __name__ == "__main__":
    sys.exit(main())
