Commits

Meera Ghumalia  committed d8f7927

Copy our files after Sphinx. This will help us cleanly override any modifications from sphinx.

  • Participants
  • Parent commits db18396

Comments (0)

Files changed (1)

File sphinx/builders/latex.py

                          path.join(self.outdir, dest))
             self.info()
 
-        # copy additional files
-        if self.config.latex_additional_files:
-            self.info(bold('copying additional files...'), nonl=1)
-            for filename in self.config.latex_additional_files:
-                self.info(' '+filename, nonl=1)
-                copyfile(path.join(self.confdir, filename),
-                         path.join(self.outdir, path.basename(filename)))
-            self.info()
-
         # the logo is handled differently
         if self.config.latex_logo:
             logobase = path.basename(self.config.latex_logo)
             if not filename.startswith('.'):
                 copyfile(path.join(staticdirname, filename),
                          path.join(self.outdir, filename))
+
+        # Copy our files after Sphinx. This will help us cleanly
+        # override any modifications from sphinx.
+        # copy additional files
+        if self.config.latex_additional_files:
+            self.info(bold('copying additional files...'), nonl=1)
+            for filename in self.config.latex_additional_files:
+                self.info(' '+filename, nonl=1)
+                copyfile(path.join(self.confdir, filename),
+                         path.join(self.outdir, path.basename(filename)))
+            self.info()
+
         self.info('done')