~ma5/madanalysis5/madanalysis-development

« back to all changes in this revision

Viewing changes to madanalysis/system/detect_gpp.py

  • Committer: Benjamin Fuks
  • Date: 2018-05-04 10:44:49 UTC
  • mfrom: (115.1.81 v1.6beta)
  • Revision ID: fuks@cern.ch-20180504104449-60h8a00loxgr8zg0
Releasing v1.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
            result = ShellCommand.Which('g++',all=True,mute=True)
80
80
            if len(result)==0:
81
81
                self.logger.error('g++ compiler not found. Please install it before ' + \
82
 
                         'using MadAnalysis 5')
 
82
                                  'using MadAnalysis 5')
83
83
                return False
84
84
            self.logger.debug("  which-all:     ")
85
85
            for file in result:
89
89
        ok, out, err = ShellCommand.ExecuteWithCapture(['g++','-dumpversion'],'./')
90
90
        if not ok:
91
91
            self.logger.error('g++ compiler not found. Please install it before ' + \
92
 
                     'using MadAnalysis 5')
 
92
                              'using MadAnalysis 5')
93
93
            return False
94
94
        out=out.lstrip()
95
95
        out=out.rstrip()