python read from ConfigParser

from ConfigParser import RawConfigParser
cfg = RawConfigParser()
mpath = os.path.abspath(os.path.dirname(__file__))
cfg_path=os.path.join(mpath,’config.cfg’)
Utils.log(‘cfg_path:’+cfg_path)
cfg.read(cfg_path)
cfg.sections()
NAME = cfg.get(‘copy_job’,’NAME’)
//config.cfg
[copy_job]
NAME : "gnxdr01"
FOLDERLIST : ["dns", "http", "subscriber"]
DESTSUBFOLDER :["kafka", "mi"]
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.