Include default config dir in data

This commit is contained in:
nolash 2021-07-05 15:45:01 +02:00
parent c6b5d9a8e0
commit f84edb5f3b
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
include erc20_demurrage_token/data/*
include erc20_demurrage_token/data/* erc20_demurrage_token/data/config/*.ini

View File

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