had a warm cup of java
This commit is contained in:
parent
1d947c2c1e
commit
7149d9f39d
1 changed files with 6 additions and 0 deletions
|
@ -21,3 +21,9 @@ class BuypeebSettings:
|
||||||
self.s = json.load(open(self.location + "config.json", 'r'))
|
self.s = json.load(open(self.location + "config.json", 'r'))
|
||||||
except:
|
except:
|
||||||
print("Couldn't load settings - using defaults")
|
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
|
||||||
|
|
Loading…
Reference in a new issue