iniUtil.py 366 Bytes
Newer Older
zhaihuitao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# -*- coding: utf-8 -*-
"""
@author:zhaiht
@file:  iniUtil.py
@time:  2020/9/17 10:30
@desc:
"""

from configparser import ConfigParser


def read_config(config_file_path: str):
    """
    读取配置文件
    :param config_file_path: 文件路径
    :return: 配置文件对象
    """
    rc = ConfigParser()
    rc.read(config_file_path)
    return rc