[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"
|
||||
)
|
||||
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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue