DNS-py2/libs/config.py
2018-03-30 02:11:24 +11:00

14 lines
312 B
Python

import files as f
import json
import os
def readConf(fileLoc):
try:
jsonData = json.loads(f.openFile(os.path.expanduser(fileLoc)).read())
except Exception as e:
print("File not found, you will need to copy the config to your home directory")
jasonData = ""
return jsonData