[Rivet-svn] r2270 - trunk/bin

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Feb 25 13:52:47 GMT 2010


Author: fsiegert
Date: Thu Feb 25 13:52:46 2010
New Revision: 2270

Log:
bugfix for recent RIVET_REF_PATH commit in bin/rivet-mkhtml.

Modified:
   trunk/bin/rivet-mkhtml

Modified: trunk/bin/rivet-mkhtml
==============================================================================
--- trunk/bin/rivet-mkhtml	Wed Feb 24 17:16:49 2010	(r2269)
+++ trunk/bin/rivet-mkhtml	Thu Feb 25 13:52:46 2010	(r2270)
@@ -37,7 +37,10 @@
 
 opts, aidafiles = parser.parse_args()
 
-refpaths = os.environ['RIVET_REF_PATH'].split(":")
+if os.environ.has_key('RIVET_REF_PATH'):
+    refpaths = os.environ['RIVET_REF_PATH'].split(":")
+else:
+    refpaths = []
 try:
     datadir = Popen(["rivet-config", "--datadir"], stdout=PIPE).communicate()[0].split()[0]
     refpaths.append(datadir)


More information about the Rivet-svn mailing list