Files
dragonpilot/common/basedir.py
T
2020-12-18 10:57:05 +00: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"