Files
hao-ai-lab-FastVideo/fastvideo-kernel/benchmarks/_bootstrap.py
T
2026-04-09 07:32:11 +00:00

15 lines
363 B
Python

"""Make local benchmark scripts runnable from common repo entrypoints."""
from pathlib import Path
import sys
BENCHMARKS_DIR = Path(__file__).resolve().parent
KERNEL_ROOT = BENCHMARKS_DIR.parent
REPO_ROOT = KERNEL_ROOT.parent
for path in (KERNEL_ROOT, REPO_ROOT):
path_str = str(path)
if path_str not in sys.path:
sys.path.insert(0, path_str)