mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-19 17:03:58 +08:00
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")
|
|
|