From e6b2950bccc2ebd2332cec745d24cb5cff1a16a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Fra=C3=9F?= Date: Sat, 4 Mar 2023 15:51:26 +0100 Subject: [PATCH] [mod] main:keinen Pfad zur Zustands-Datei anzeigen, wenn nur die expandierte conf ausgegeben werden soll --- source/logic/main.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/source/logic/main.py b/source/logic/main.py index 705447f..864c1bb 100644 --- a/source/logic/main.py +++ b/source/logic/main.py @@ -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))