mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-03-01 00:33:55 +08:00
git-subtree-dir: cereal
git-subtree-split: 9f2076eefd6f71c9b640d26d29ed33a6bbcbf4ca
old-commit-hash: 24e096d9f0
9 lines
223 B
Python
9 lines
223 B
Python
import os
|
|
import capnp
|
|
|
|
CEREAL_PATH = os.path.dirname(os.path.abspath(__file__))
|
|
capnp.remove_import_hook()
|
|
|
|
log = capnp.load(os.path.join(CEREAL_PATH, "log.capnp"))
|
|
car = capnp.load(os.path.join(CEREAL_PATH, "car.capnp"))
|