From 1b00dba8c52fcb695bdd486f5c278f35c9554e34 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 13 Oct 2019 14:21:44 +0200 Subject: Another test. --- bin/config_writer.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/config_writer.py b/bin/config_writer.py index 43f6764..529ec7e 100644 --- a/bin/config_writer.py +++ b/bin/config_writer.py @@ -33,6 +33,7 @@ config_file_path = sys.argv[2] def output(text): print(text) + print("") with open(log_file_path, 'a') as f: f.write(text) f.write("") @@ -44,5 +45,7 @@ config = {} config["test"] = "testing" config["test2"] = 2 -config_json = json.dumps(config) -output(config_json) +config_json = json.dumps(config, indent=4) + +with open(config_file_path, 'w') as f: + f.write(config_json) -- cgit v1.2.3-70-g09d2