To use my example,Your file "abc.txt" requirements to resemble:
[your-config]
path1 = "D:\test1\first"
path2 = "D:\test2\second"
path3 = "D:\test2\third"
At that point in your software you can utilize the config parser:
import ConfigParser
and afterward in you code:
configParser = ConfigParser.RawConfigParser()
configFilePath = r'c:\abc.txt'
configParser.read(configFilePath)
Use case:
self.path = configParser.get('your-config', 'path1')
Improve your knowledge in Python from scratch using python online courses