diff options
author | xengineering <mail2xengineering@protonmail.com> | 2019-10-13 14:21:44 +0200 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2019-10-13 14:21:44 +0200 |
commit | 1b00dba8c52fcb695bdd486f5c278f35c9554e34 (patch) | |
tree | 666af2885ba499d978b2908c491de9200fc9acac | |
parent | db9decc0f0450657d4e45aa7fe5bc15fe0292a74 (diff) | |
download | archinstall-1b00dba8c52fcb695bdd486f5c278f35c9554e34.tar archinstall-1b00dba8c52fcb695bdd486f5c278f35c9554e34.tar.zst archinstall-1b00dba8c52fcb695bdd486f5c278f35c9554e34.zip |
Another test.
-rw-r--r-- | bin/config_writer.py | 7 |
1 files 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) |