#!/usr/bin/env python3
"""trustmux-pair — generate a one-time pairing code for a new device."""
import sys
import os

# When run from the dev tree or Debian install (not via pip), the package may
# not be on sys.path — add the directory that contains the trustmux/ package.
_here = os.path.dirname(os.path.abspath(__file__))
if os.path.isdir(os.path.join(_here, "trustmux")):
    sys.path.insert(0, _here)
else:
    sys.path.insert(0, "/usr/lib/trustmux")

from trustmux._pair import main

if __name__ == "__main__":
    main()
