mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-05 21:42:05 +08:00
store params in ~/.comma on PC (#2369)
old-commit-hash: c0d92516ccf4dcb8a09c972815a6e08326b59105
This commit is contained in:
@@ -7,7 +7,6 @@ from params_pxd cimport Params as c_Params
|
||||
import os
|
||||
import threading
|
||||
from common.basedir import BASEDIR
|
||||
os.environ['BASEDIR'] = BASEDIR
|
||||
|
||||
cdef enum TxType:
|
||||
PERSISTENT = 1
|
||||
|
||||
@@ -33,7 +33,7 @@ std::string getenv_default(const char* env_var, const char * suffix, const char*
|
||||
#if defined(QCOM) || defined(QCOM2)
|
||||
const std::string default_params_path = "/data/params";
|
||||
#else
|
||||
const std::string default_params_path = getenv_default("BASEDIR", "/persist/params", "/data/params");
|
||||
const std::string default_params_path = getenv_default("HOME", "/.comma/params", "/data/params");
|
||||
#endif
|
||||
|
||||
#if defined(QCOM) || defined(QCOM2)
|
||||
|
||||
Reference in New Issue
Block a user