mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 07:22:04 +08:00
161005a0c1
date: 2025-11-19T19:10:11 master commit: a29fdbd02407d41ecbcc69d151bb4837bfba3cbc
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"))
|