def configure(self, options, conf):
super(NoseExclude, self).configure(options, conf)<EOL>self.exclude_dirs = {}<EOL>if options.exclude_dir_file:<EOL><INDENT>if not options.exclude_dirs:<EOL><INDENT>options.exclude_dirs = []<EOL><DEDENT>new_dirs = self._load_from_file(options.exclude_dir_file)<EOL>options.exclude_dirs.extend(new_dirs)<EOL><DEDENT>if not options.exclude_dirs:<EOL><INDENT>self.enabled = False<EOL>return<EOL><DEDENT>self.enabled = True<EOL>root = os.getcwd()<EOL>log.debug('<STR_LIT>' % root)<EOL>for exclude_param in options.exclude_dirs:<EOL><INDENT>for d in exclude_param.split('<STR_LIT:\n>'):<EOL><INDENT>d = d.strip()<EOL>abs_d = self._force_to_abspath(d)<EOL>if abs_d:<EOL><INDENT>self.exclude_dirs[abs_d] = True<EOL><DEDENT><DEDENT><DEDENT>exclude_str = "<STR_LIT>" % "<STR_LIT:U+002C>".join(self.exclude_dirs.keys())<EOL>log.debug(exclude_str)<EOL>
Configure plugin based on command line options