had a warm cup of java

This commit is contained in:
Lynne Megido 2020-08-21 20:35:53 +10:00
parent 1d947c2c1e
commit 7149d9f39d
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90

View file

@ -21,3 +21,9 @@ class BuypeebSettings:
self.s = json.load(open(self.location + "config.json", 'r'))
except:
print("Couldn't load settings - using defaults")
def get(self, setting: str): # javalicious
return self.s.get(setting, None)
def set(self, setting: str, value):
self.s['setting'] = value