fix not depend on orisys-common

This commit is contained in:
ykcheungab
2026-09-04 17:29:11 +08:00
parent 4db82c890d
commit e4e8911001
3 changed files with 2 additions and 21 deletions
+1 -7
View File
@@ -22,19 +22,13 @@ SRC = ROOT / "src"
if str(SRC) not in sys.path:
sys.path.insert(0, str(SRC))
# Prefer sibling checkouts for editable Sensor-owned preview.
ORISYS_COMMON_SRC = ROOT.parent / "orisys-common" / "src"
if ORISYS_COMMON_SRC.is_dir() and str(ORISYS_COMMON_SRC) not in sys.path:
sys.path.insert(0, str(ORISYS_COMMON_SRC))
# Prefer sibling orisys-sdk checkout for Sensor-owned preview.
ORISYS_SRC = ROOT.parent / "orisys-sdk" / "src"
if ORISYS_SRC.is_dir() and str(ORISYS_SRC) not in sys.path:
sys.path.insert(0, str(ORISYS_SRC))
from orisys_common.runtime import configure_app_root # noqa: E402
from sensor_bench.paths import prefer_local_sensor_bundles # noqa: E402
configure_app_root(ROOT)
prefer_local_sensor_bundles(ROOT)
from sensor_bench.main import main # noqa: E402