2026-09-04 16:45:38 +02:00
|
|
|
#!/usr/bin/env python3
|
2026-09-05 09:26:51 +02:00
|
|
|
"""Thin shim: the shared harvest library lives in ``benchmarks/pairs/harvest.py``.
|
2026-09-04 16:45:38 +02:00
|
|
|
|
2026-09-05 09:26:51 +02:00
|
|
|
Kept so existing maintainer commands and tests keep working:
|
|
|
|
|
``python benchmarks/pairs/vfc/harvest.py --name openssl-cve-2014-0160``.
|
2026-09-04 16:45:38 +02:00
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
2026-09-05 09:26:51 +02:00
|
|
|
import runpy
|
2026-09-04 16:45:38 +02:00
|
|
|
import sys
|
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
2026-09-05 09:26:51 +02:00
|
|
|
_LIB = Path(__file__).resolve().parents[1] / "harvest.py"
|
|
|
|
|
_NS = runpy.run_path(str(_LIB), run_name="pair_harvest_lib")
|
|
|
|
|
globals().update({key: value for key, value in _NS.items() if not key.startswith("__") and key != "main"})
|
2026-09-04 16:45:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def main(argv: list[str] | None = None) -> int:
|
2026-09-05 09:26:51 +02:00
|
|
|
args = list(sys.argv[1:] if argv is None else argv)
|
|
|
|
|
if "--slice" not in args:
|
|
|
|
|
args = ["--slice", "vfc", *args]
|
|
|
|
|
return int(_NS["main"](args))
|
2026-09-04 16:45:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
raise SystemExit(main())
|