store params in ~/.comma on PC (#2369)

old-commit-hash: c0d92516cc
This commit is contained in:
Willem Melching 2020-10-20 13:18:21 +02:00 committed by GitHub
parent 65b397460e
commit 9ecc0d362e
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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)