def read_config(): config = ConfigParser() config.read([path.join(BASE_DIR, 'settings.ini'), os.getenv('CONF_FILE', '')]) return config