[mod] main:keinen Pfad zur Zustands-Datei anzeigen, wenn nur die expandierte conf ausgegeben werden soll

This commit is contained in:
Christian Fraß 2023-03-04 15:51:26 +01:00
parent d06d7ae883
commit e6b2950bcc

View file

@ -130,26 +130,27 @@ def main():
"\n"
)
else:
_sys.stderr.write(
string_coin(
"[info] {{label}}: {{path}}\n",
{
"label": translation_get("misc.state_file_path"),
"path": state_path,
}
)
)
### get configuration data
conf = conf_load(
check_kind_implementations,
notification_channel_implementations,
_os.path.abspath(args.conf_path)
)
if (args.expose_full_conf):
_sys.stdout.write(_json.dumps(conf, indent = "\t") + "\n")
_sys.exit(1)
else:
_sys.stderr.write(
string_coin(
"[info] {{label}}: {{path}}\n",
{
"label": translation_get("misc.state_file_path"),
"path": state_path,
}
)
)
### get state data
if (
(not _os.path.exists(state_path))