mtyrrell's picture
init
d93f479
raw
history blame contribute delete
382 Bytes
import os
import configparser
import logging
def getconfig(configfile_path: str):
"""
Read the config file
Params
----------------
configfile_path: file path of .cfg file
"""
config = configparser.ConfigParser()
try:
config.read_file(open(configfile_path))
return config
except:
logging.warning("config file not found")