mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-25 06:42:04 +08:00
5481370db3
date: 2024-03-12T10:58:15 commit: 1a6b7fc5410ebb87478d8bc0fc204d632e80e8c7
10 lines
286 B
Python
10 lines
286 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"))
|
|
custom = capnp.load(os.path.join(CEREAL_PATH, "custom.capnp"))
|