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