from configparser import ConfigParser import os conf = ConfigParser() conf.read(os.path.dirname(__file__) + "/fioul.ini")