mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-21 17:53:45 +08:00
5ebb02b22d
version: sunnypilot v2026.002.000 (feature-branch)
date: 2026-07-24T17:30:38
master commit: 15dc075560
12 lines
357 B
Python
12 lines
357 B
Python
import os
|
|
import capnp
|
|
from importlib.resources import as_file, files
|
|
|
|
capnp.remove_import_hook()
|
|
|
|
with as_file(files("cereal")) as fspath:
|
|
CEREAL_PATH = fspath.as_posix()
|
|
log = capnp.load(os.path.join(CEREAL_PATH, "log.capnp"))
|
|
car = capnp.load(os.path.join(CEREAL_PATH, "car.capnp"))
|
|
custom = capnp.load(os.path.join(CEREAL_PATH, "custom.capnp"))
|