passwdtools/configuration.py

11 lines
219 B
Python

import json
class Configuration:
def __init__(self):
with open('cfg/config.json') as cfgfile:
self.data = json.load(cfgfile)
def get_keyfilename(self):
return self.data["keyfile"]