mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 00:43:54 +08:00
* hardware abstraction class
* De Morgan
* Rename pc hardware class
* Fix sound card in controlsd
* Pc get sim info
* fix hardware in test
* two more
* No more random imei on android
* no randomness on android
* Need to return something that looks like imei for registration to work
* Return proper network strength
* Unused import
* Bug fixes + gpsd is only android
old-commit-hash: c7152d5419
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"
|