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
-7
View File
@@ -142,13 +142,6 @@ def prefer_local_sensor_bundles(root: Path | None = None) -> Path | None:
global _PREFERRED_SENSOR_ROOT
resolved_root = Path(root).resolve() if root is not None else app_root()
try:
from orisys_common.runtime import configure_app_root
configure_app_root(resolved_root)
except Exception: # noqa: BLE001
pass
sensors = (resolved_root / "sensors").resolve()
if not sensors.is_dir():
return None