From ffaaeb449a7444a7ef35a15fea40c19912db8e8c Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 14 Oct 2019 05:55:40 +0100 Subject: moved config initalisation to cli() --- datamaps/main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'datamaps/main.py') diff --git a/datamaps/main.py b/datamaps/main.py index ae9d056..84d2e1b 100644 --- a/datamaps/main.py +++ b/datamaps/main.py @@ -67,6 +67,7 @@ def cli(config, verbose): is undergoing continuous change. """ config.verbose = verbose + engine_config.initialise() @cli.group("import") @@ -98,8 +99,6 @@ def report(): help="Create master.xlsx immediately", ) def templates(to_master): - # TODO move this to cli() - engine_config.initialise() click.secho(f"Welcome to datamaps {__version__} © Twenty Four Software", fg="yellow") if to_master: try: @@ -128,8 +127,6 @@ def master(master): Export data from master file whose path is FILE_PATH to a series of blank Template files. """ - engine_config.initialise() - input_dir = engine_config.PLATFORM_DOCS_DIR / "input" blank_fn = engine_config.config_parser["DEFAULT"]["blank file name"] -- cgit v1.2.3