mtyrrell/chatfed_retriever
0
1import configparser2import logging3 4def getconfig(configfile_path: str):5 """6 Read the config file7 Params8 ----------------9 configfile_path: file path of .cfg file10 """11 config = configparser.ConfigParser()12 try:13 config.read_file(open(configfile_path))14 return config15 except:16 logging.warning("config file not found")