read_config
import configparser
import os
def read_cf(cnf_name, cnf_name_Num1):
cp = configparser.ConfigParser()
path = os.getcwd()
parent_dir = os.path.dirname(os.path.abspath(__file__))
cp.read(parent_dir + '/config_name.ini')
data_info = cp.get('{}'.format(cnf_name), '{}'.format(cnf_name_Num1))
return data_info