IQ.Pilot Release Commit @ b6534c0

This commit is contained in:
IQ.Lvbs CI [bot]
2026-08-27 20:17:33 -05:00
commit 00f07cac48
4706 changed files with 1257146 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
#!/usr/bin/env python3
"""Thin launcher for the jotpluggler C++ binary.
Builds it on first run via scons (with the `tools` uv extra so the
imgui / libusb prebuilt wheels are available), then execs it with the
caller's args.
"""
import os
import subprocess
import sys
from pathlib import Path
SCRIPT_DIR = Path(__file__).resolve().parent
REPO_ROOT = SCRIPT_DIR.parents[2]
BINARY = SCRIPT_DIR / "jotpluggler"
def _run(args: list[str]) -> int:
env = os.environ.copy()
env.setdefault("PYTHONPATH", str(REPO_ROOT))
if not BINARY.exists():
build_cmd = ["uv", "run", "--extra", "tools", "scons", "-j4", "iqpilot/tools/jotpluggler/"]
build = subprocess.run(build_cmd, cwd=REPO_ROOT, env=env)
if build.returncode != 0:
return build.returncode
return subprocess.call([str(BINARY), *args], cwd=REPO_ROOT, env=env)
if __name__ == "__main__":
raise SystemExit(_run(sys.argv[1:]))