[mod] main:keinen Pfad zur Zustands-Datei anzeigen, wenn nur die expandierte conf ausgegeben werden soll
This commit is contained in:
parent
d06d7ae883
commit
e6b2950bcc
|
|
@ -130,26 +130,27 @@ def main():
|
||||||
"\n"
|
"\n"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
_sys.stderr.write(
|
|
||||||
string_coin(
|
|
||||||
"[info] {{label}}: {{path}}\n",
|
|
||||||
{
|
|
||||||
"label": translation_get("misc.state_file_path"),
|
|
||||||
"path": state_path,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
### get configuration data
|
### get configuration data
|
||||||
conf = conf_load(
|
conf = conf_load(
|
||||||
check_kind_implementations,
|
check_kind_implementations,
|
||||||
notification_channel_implementations,
|
notification_channel_implementations,
|
||||||
_os.path.abspath(args.conf_path)
|
_os.path.abspath(args.conf_path)
|
||||||
)
|
)
|
||||||
|
|
||||||
if (args.expose_full_conf):
|
if (args.expose_full_conf):
|
||||||
_sys.stdout.write(_json.dumps(conf, indent = "\t") + "\n")
|
_sys.stdout.write(_json.dumps(conf, indent = "\t") + "\n")
|
||||||
_sys.exit(1)
|
_sys.exit(1)
|
||||||
else:
|
else:
|
||||||
|
_sys.stderr.write(
|
||||||
|
string_coin(
|
||||||
|
"[info] {{label}}: {{path}}\n",
|
||||||
|
{
|
||||||
|
"label": translation_get("misc.state_file_path"),
|
||||||
|
"path": state_path,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
### get state data
|
### get state data
|
||||||
if (
|
if (
|
||||||
(not _os.path.exists(state_path))
|
(not _os.path.exists(state_path))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue