* use the openpilot/persist directory on PC * manager runs on mac * sim runs w/o carla * fix params location in test * that rmtree can fail and it's okay * refactor params clear functionality * set PARAMS_PATH old-commit-hash: c42e2ecc50d72947719219e20a5e91ed9bf5fbf4
12 lines
305 B
Python
12 lines
305 B
Python
import os
|
|
BASEDIR = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../"))
|
|
|
|
from common.android import ANDROID
|
|
if ANDROID:
|
|
PERSIST = "/persist"
|
|
PARAMS = "/data/params"
|
|
else:
|
|
PERSIST = os.path.join(BASEDIR, "persist")
|
|
PARAMS = os.path.join(BASEDIR, "persist", "params")
|
|
|