mirror of
git://holbrook.no/erc20-demurrage-token
synced 2024-11-25 17:26:45 +01:00
Include default config dir in data
This commit is contained in:
parent
c6b5d9a8e0
commit
f84edb5f3b
@ -1 +1 @@
|
|||||||
include erc20_demurrage_token/data/*
|
include erc20_demurrage_token/data/* erc20_demurrage_token/data/config/*.ini
|
||||||
|
@ -41,7 +41,7 @@ logg = logging.getLogger()
|
|||||||
script_dir = os.path.dirname(__file__)
|
script_dir = os.path.dirname(__file__)
|
||||||
data_dir = os.path.join(script_dir, '..', 'data')
|
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 = argparse.ArgumentParser()
|
||||||
argparser.add_argument('-c', '--config', dest='c', type=str, default=default_config_dir, help='configuration directory')
|
argparser.add_argument('-c', '--config', dest='c', type=str, default=default_config_dir, help='configuration directory')
|
||||||
|
Loading…
Reference in New Issue
Block a user