utils.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:experiment-manager 作者: softfire-eu 项目源码 文件源码
def get_config_parser():
    """
    Get the ConfigParser object containing the system configurations

    :return: ConfigParser object containing the system configurations
    """
    config = configparser.ConfigParser()
    if os.path.exists(CONFIG_FILE_PATH) and os.path.isfile(CONFIG_FILE_PATH):
        config.read(CONFIG_FILE_PATH)
        return config
    else:
        logging.error("Config file not found, create %s" % CONFIG_FILE_PATH)
        exit(1)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号