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

pull/2366/head
Willem Melching 2020-10-20 13:18:21 +02:00 committed by GitHub
parent 9d0b893944
commit c0d92516cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)