mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-21 22:12:05 +08:00
cfe0ae9b8a
date: 2023-10-09T10:55:55 commit: 91b6e3aecd7170f24bccacb10c515ec281c30295
12 lines
271 B
Python
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"
|