|
[Rivet-svn] r1886 - trunk/binblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Oct 7 18:58:00 BST 2009
Author: hoeth Date: Wed Oct 7 18:58:00 2009 New Revision: 1886 Log: make compare-histos work with python-2.3 again by using os.popen instead of subprocess.Popen Modified: trunk/bin/compare-histos Modified: trunk/bin/compare-histos ============================================================================== --- trunk/bin/compare-histos Wed Oct 7 16:59:07 2009 (r1885) +++ trunk/bin/compare-histos Wed Oct 7 18:58:00 2009 (r1886) @@ -236,7 +236,6 @@ if __name__ == "__main__": import os, sys, re, logging - from subprocess import Popen, PIPE usage = """%prog - generate comparison plots @@ -255,9 +254,8 @@ except ImportError: pass - try: - rivet_data_dir=Popen(["rivet-config", "--datadir"], stdout=PIPE).communicate()[0].split()[0] - except: + rivet_data_dir=os.popen('rivet-config --datadir',"r").readline().strip() + if not rivet_data_dir: rivet_data_dir="" ## Parse command line options
More information about the Rivet-svn mailing list |