Files
dragonpilot/common/basedir.py
dragonpilot cfe0ae9b8a dragonpilot beta3
date: 2023-10-09T10:55:55
commit: 91b6e3aecd7170f24bccacb10c515ec281c30295
2023-10-09 10:56:13 -07:00

12 lines
271 B
Python

import os
from pathlib import Path
from openpilot.system.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"