mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-20 01:13:55 +08:00
9 lines
218 B
Python
9 lines
218 B
Python
import os
|
|
BASEDIR = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../"))
|
|
|
|
from selfdrive.hardware import PC
|
|
if PC:
|
|
PERSIST = os.path.join(BASEDIR, "persist")
|
|
else:
|
|
PERSIST = "/persist"
|