mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-09 17:19:15 -10:00
pacing_bench: import its helpers as the other tools do (no sys.path change)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
a3d814ec3f
commit
d1ee2d879c
1 file changed
+6
-4
@@ -26,13 +26,15 @@ import math
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
||||
import lab # noqa: E402
|
||||
import perf_bench as pb # noqa: E402
|
||||
try:
|
||||
from . import lab
|
||||
from . import perf_bench as pb
|
||||
except ImportError:
|
||||
import lab
|
||||
import perf_bench as pb
|
||||
|
||||
WORK = lab.ROOT / ".local/pacing-bench"
|
||||
SCENARIOS = ["fly16", "ocean", "fly64", "teleport", "nether", "inventory"]
|
||||
|
||||
Reference in new issue
Block a user