def load(self):
if not self.loaded:<EOL><INDENT>self.values = configobj.ConfigObj({}, **self.DEFAULT_CONFIG_OPTS)<EOL>for path in self.locations():<EOL><INDENT>try:<EOL><INDENT>part = configobj.ConfigObj(infile=path, **self.DEFAULT_CONFIG_OPTS)<EOL><DEDENT>except configobj.ConfigObjError as cause:<EOL><INDENT>raise LoggedFailure("<STR_LIT>".format(path=pretty_path(path), cause=cause))<EOL><DEDENT>self.values.merge(part)<EOL><DEDENT>self.loaded = True<EOL><DEDENT>return self.values<EOL>
Load configuration from the defined locations.