Files
sunnypilot/common/basedir.py
Adeeb Shihadeh b950cab874 HW abstraction layer (#19530)
* start hw refactor

* move that

* pins

* put that back
old-commit-hash: 8674b023ba
2020-12-16 21:30:23 -08:00

9 lines
218 B
Python

import os
BASEDIR = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../"))
from selfdrive.hardware import PC
if PC:
PERSIST = os.path.join(BASEDIR, "persist")
else:
PERSIST = "/persist"