[Rivet-svn] r3064 - trunk/bin

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Apr 21 16:12:43 BST 2011


Author: hoeth
Date: Thu Apr 21 16:12:42 2011
New Revision: 3064

Log:
fix python error in make-plots when using --tex

Modified:
   trunk/bin/make-plots

Modified: trunk/bin/make-plots
==============================================================================
--- trunk/bin/make-plots	Thu Apr 21 16:12:16 2011	(r3063)
+++ trunk/bin/make-plots	Thu Apr 21 16:12:42 2011	(r3064)
@@ -2003,6 +2003,7 @@
 
 
     ## Test for external programs (kpsewhich, latex, dvips, ps2pdf/ps2eps, and convert)
+    opts.LATEXPKGS = []
     if opts.OUTPUT_FORMAT != "TEX":
         try:
             import subprocess
@@ -2055,7 +2056,6 @@
                         opts.OUTPUT_FONT = "PALATINO"
 
                 ## Check for HEP LaTeX packages
-                opts.LATEXPKGS = []
                 for pkg in ["hepnicenames", "hepunits", "underscore"]:
                     p = subprocess.Popen(["kpsewhich", "%s.sty" % pkg], stdout=subprocess.PIPE)
                     p.wait()


More information about the Rivet-svn mailing list