def configure(self, options, conf):
try:<EOL><INDENT>self.status.pop('<STR_LIT>')<EOL><DEDENT>except KeyError:<EOL><INDENT>pass<EOL><DEDENT>super(Coverage, self).configure(options, conf)<EOL>if conf.worker:<EOL><INDENT>return<EOL><DEDENT>if self.enabled:<EOL><INDENT>try:<EOL><INDENT>import coverage<EOL><DEDENT>except ImportError:<EOL><INDENT>log.error("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>self.enabled = False<EOL>return<EOL><DEDENT><DEDENT>self.conf = conf<EOL>self.coverErase = options.cover_erase<EOL>self.coverTests = options.cover_tests<EOL>self.coverPackages = []<EOL>if options.cover_packages:<EOL><INDENT>for pkgs in [tolist(x) for x in options.cover_packages]:<EOL><INDENT>self.coverPackages.extend(pkgs)<EOL><DEDENT><DEDENT>self.coverInclusive = options.cover_inclusive<EOL>if self.coverPackages:<EOL><INDENT>log.info("<STR_LIT>",<EOL>self.coverPackages)<EOL><DEDENT>self.coverHtmlDir = None<EOL>if options.cover_html:<EOL><INDENT>self.coverHtmlDir = options.cover_html_dir<EOL>log.debug('<STR_LIT>', self.coverHtmlDir)<EOL><DEDENT>self.coverBranches = options.cover_branches<EOL>self.coverXmlFile = None<EOL>if options.cover_min_percentage:<EOL><INDENT>self.coverMinPercentage = int(options.cover_min_percentage.rstrip('<STR_LIT:%>'))<EOL><DEDENT>if options.cover_xml:<EOL><INDENT>self.coverXmlFile = options.cover_xml_file<EOL>log.debug('<STR_LIT>', self.coverXmlFile)<EOL><DEDENT>if self.enabled:<EOL><INDENT>self.status['<STR_LIT>'] = True<EOL>self.coverInstance = coverage.coverage(auto_data=False,<EOL>branch=self.coverBranches, data_suffix=None)<EOL><DEDENT>
Configure plugin.