Skip to content
Snippets Groups Projects
Commit 091a947a authored by Daniel CARRON's avatar Daniel CARRON :b: Committed by André Anjos
Browse files

[mednet.info] More sensible check of configuration file

parent 5c388d50
No related branches found
No related tags found
1 merge request!46Create common library
......@@ -34,9 +34,6 @@ def database_configuration(
Name of the library to show configurations for.
"""
if not rc.path.exists():
_echo(f"{lib_name} configuration", f"{str(rc.path)} [MISSING]", "white")
click.secho(f"configured {lib_name} databases:", bold=True)
for k, v in raw_databases.items():
if "datadir" not in v:
......@@ -87,18 +84,23 @@ def info(
"cyan",
)
_echo("mednet configuration file: ", str(load_rc().path), "white")
rc = load_rc()
database_configuration(
load_rc(),
_get_raw_databases_classification(),
"classification",
)
database_configuration(
load_rc(),
_get_raw_databases_segmentation(),
"segmentation",
)
if not rc.path.exists():
_echo("mednet configuration", f"{str(rc.path)} [MISSING]", "white")
else:
_echo("mednet configuration file: ", str(rc.path), "white")
database_configuration(
rc,
_get_raw_databases_classification(),
"classification",
)
database_configuration(
rc,
_get_raw_databases_segmentation(),
"segmentation",
)
click.secho("dependencies:", bold=True)
python = typing.cast(dict[str, str], m["python"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment