mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 13:32:04 +08:00
b2f2dabe71
date: 2023-11-17T23:53:40
master commit: d3aad9ca46
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"
|