diff --git a/src/settings.py b/src/settings.py index 355ee4e..f7b879c 100644 --- a/src/settings.py +++ b/src/settings.py @@ -17,19 +17,19 @@ import boto3 import os -CONFIGFILE = "config.json" +CONFIGFILE = 'config.json' def create_config(): # create the config file if it does not exist try: - with open(CONFIGFILE, "r") as f: + with open(CONFIGFILE, 'r') as f: data = json.load(f) except FileNotFoundError: - with open(CONFIGFILE, "w") as f: - f.write("{}") + with open(CONFIGFILE, 'w') as f: + f.write('{}') - with open(CONFIGFILE, "r") as f: + with open(CONFIGFILE, 'r') as f: data = json.load(f) if "aws_access_key_id" not in data: @@ -47,20 +47,20 @@ def create_config(): if "check_for_updates" not in data: data["check_for_updates"] = True - with open(CONFIGFILE, "w") as f: + with open(CONFIGFILE, 'w') as f: json.dump(data, f, indent=4, sort_keys=True) def read_config(): - with open(CONFIGFILE, "r") as f: + with open(CONFIGFILE, 'r') as f: return json.load(f) def save_config(key, value): - with open(CONFIGFILE, "r") as f: + with open(CONFIGFILE, 'r') as f: data = json.load(f) data[key] = value - with open(CONFIGFILE, "w") as f: + with open(CONFIGFILE, 'w') as f: json.dump(data, f, indent=4, sort_keys=True)