Files
dragonpilot/selfdrive/can/parser.py

10 lines
344 B
Python
Raw Normal View History

2019-06-28 21:11:30 +00:00
import os
import subprocess
2017-07-28 01:24:39 -07:00
2019-06-28 21:11:30 +00:00
can_dir = os.path.dirname(os.path.abspath(__file__))
libdbc_fn = os.path.join(can_dir, "libdbc.so")
2019-10-31 17:14:40 -07:00
subprocess.check_call(["make", "-j3"], cwd=can_dir) # don't use all the cores to avoid overheating
2017-07-28 01:24:39 -07:00
2019-06-28 21:11:30 +00:00
from selfdrive.can.parser_pyx import CANParser # pylint: disable=no-name-in-module, import-error
assert CANParser