mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-27 22:23:54 +08:00
11 lines
295 B
Python
11 lines
295 B
Python
import os
|
|
BASEDIR = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../"))
|
|
|
|
from common.hardware import PC
|
|
if PC:
|
|
PERSIST = os.path.join(BASEDIR, "persist")
|
|
PARAMS = os.path.join(BASEDIR, "persist", "params")
|
|
else:
|
|
PERSIST = "/persist"
|
|
PARAMS = "/data/params"
|