Files
dragonpilot/common/basedir.py
Comma Device 5c73e264e9 Release 260308
2026-03-08 23:26:57 +08: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"