summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2019-10-13 14:21:44 +0200
committerxengineering <mail2xengineering@protonmail.com>2019-10-13 14:21:44 +0200
commit1b00dba8c52fcb695bdd486f5c278f35c9554e34 (patch)
tree666af2885ba499d978b2908c491de9200fc9acac
parentdb9decc0f0450657d4e45aa7fe5bc15fe0292a74 (diff)
downloadarchinstall-1b00dba8c52fcb695bdd486f5c278f35c9554e34.tar
archinstall-1b00dba8c52fcb695bdd486f5c278f35c9554e34.tar.zst
archinstall-1b00dba8c52fcb695bdd486f5c278f35c9554e34.zip
Another test.
-rw-r--r--bin/config_writer.py7
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)