mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 05:22:03 +08:00
6adb63b915
date: 2026-06-04T09:49:56 master commit: c0ab3550eca2e9daf197c46b7e4b24aa9637cf2e
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"))
|