commit f84edb5f3bd32f9fda4882abddf8af47853959a5
parent c6b5d9a8e08425d46d081e3d013762157a8206c2
Author: nolash <dev@holbrook.no>
Date: Mon, 5 Jul 2021 15:45:01 +0200
Include default config dir in data
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git 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
@@ -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')