aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-10-14 05:55:40 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2019-10-14 05:55:40 +0100
commitffaaeb449a7444a7ef35a15fea40c19912db8e8c (patch)
treebde0328e02cd400202f3682aa5aa5909d2b2a3dc
parent3ecdf4c60fed322cdeec25a2ef174a778d8e9700 (diff)
moved config initalisation to cli()
-rw-r--r--datamaps/main.py5
1 files changed, 1 insertions, 4 deletions
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"]