passwdtools/configuration.py

11 lines
219 B
Python
Raw Normal View History

2019-03-11 16:29:14 +00:00
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"]