nopenpilot/common/basedir.py

9 lines
218 B
Python
Raw Normal View History

2020-01-17 11:28:44 -07:00
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"