From f84edb5f3bd32f9fda4882abddf8af47853959a5 Mon Sep 17 00:00:00 2001 From: nolash Date: Mon, 5 Jul 2021 15:45:01 +0200 Subject: [PATCH] Include default config dir in data --- python/MANIFEST.in | 2 +- python/erc20_demurrage_token/runnable/deploy.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/MANIFEST.in b/python/MANIFEST.in index 2ba9f44..0585435 100644 --- a/python/MANIFEST.in +++ b/python/MANIFEST.in @@ -1 +1 @@ -include erc20_demurrage_token/data/* +include erc20_demurrage_token/data/* erc20_demurrage_token/data/config/*.ini diff --git a/python/erc20_demurrage_token/runnable/deploy.py b/python/erc20_demurrage_token/runnable/deploy.py index 579eba3..495a6e2 100644 --- a/python/erc20_demurrage_token/runnable/deploy.py +++ b/python/erc20_demurrage_token/runnable/deploy.py @@ -41,7 +41,7 @@ logg = logging.getLogger() script_dir = os.path.dirname(__file__) data_dir = os.path.join(script_dir, '..', 'data') -default_config_dir = os.environ.get('CONFINI_DIR', '/usr/local/share/sarafu-token') +default_config_dir = os.environ.get('CONFINI_DIR', os.path.join(data_dir, 'config')) argparser = argparse.ArgumentParser() argparser.add_argument('-c', '--config', dest='c', type=str, default=default_config_dir, help='configuration directory')