Constants potentially as envvars for flexible deployment

Co-Authored-By: Derek Pierre <derek.pierre@gmail.com>
pull/1242/head
Damon C 2019-08-12 09:49:47 -07:00 committed by David Núñez
parent 173d69a5d5
commit ce76084a71
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,8 @@ CONTRACT_ROOT = os.path.join(abspath(dirname(sol.__file__)), 'source', 'contract
# User Application Filepaths
APP_DIR = AppDirs(nucypher.__title__, nucypher.__author__)
DEFAULT_CONFIG_ROOT = APP_DIR.user_data_dir
USER_LOG_DIR = APP_DIR.user_log_dir
DEFAULT_CONFIG_ROOT = os.getenv('NUCYPHER_CONFIG_ROOT', default=APP_DIR.user_data_dir)
USER_LOG_DIR = os.getenv('NUCYPHER_USER_LOG_DIR', default=APP_DIR.user_log_dir)
# Static Seednodes (Not from seeder contract)