示例#1
0
 def copy_extra_files(self):
     # copy html_extra_path files
     self.info(bold("copying extra files... "), nonl=True)
     extraentries = [path.join(self.confdir, epath) for epath in self.config.html_extra_path]
     matchers = compile_matchers(self.config.exclude_patterns)
     for entry in extraentries:
         if not path.exists(entry):
             self.warn("html_extra_path entry %r does not exist" % entry)
             continue
         copy_extra_entry(entry, self.outdir, matchers)
     self.info("done")
示例#2
0
 def copy_extra_files(self):
     # copy html_extra_path files
     self.info(bold('copying extra files... '), nonl=True)
     extraentries = [path.join(self.confdir, epath)
                     for epath in self.config.html_extra_path]
     matchers = compile_matchers(self.config.exclude_patterns)
     for entry in extraentries:
         if not path.exists(entry):
             self.warn('html_extra_path entry %r does not exist' % entry)
             continue
         copy_extra_entry(entry, self.outdir, matchers)
     self.info('done')