summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/config_writer.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/bin/config_writer.py b/bin/config_writer.py
index b0963eb..43f6764 100644
--- a/bin/config_writer.py
+++ b/bin/config_writer.py
@@ -24,15 +24,25 @@
import sys
+import json
log_file_path = sys.argv[1]
+config_file_path = sys.argv[2]
def output(text):
print(text)
with open(log_file_path, 'a') as f:
f.write(text)
+ f.write("")
-output("Hello world!")
+config = {}
+
+
+config["test"] = "testing"
+config["test2"] = 2
+
+config_json = json.dumps(config)
+output(config_json)