passwdtools/configuration.py
2019-03-11 16:29:14 +00:00

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"]