Files
dragonpilot/common/basedir.py

12 lines
264 B
Python
Raw Normal View History

2020-01-17 10:28:44 -08:00
import os
from pathlib import Path
2020-01-17 10:28:44 -08:00
from selfdrive.hardware import PC
BASEDIR = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../"))
if PC:
PERSIST = os.path.join(str(Path.home()), ".comma", "persist")
else:
PERSIST = "/persist"