#! /usr/bin/env python ################################################################################ # # Copyright (c) 2009 The MadGraph5_aMC@NLO Development team and Contributors # # This file is a part of the MadGraph5_aMC@NLO project, an application which # automatically generates Feynman diagrams and matrix elements for arbitrary # high-energy processes in the Standard Model and beyond. # # It is subject to the MadGraph5_aMC@NLO license which should accompany this # distribution. # # For more information, visit madgraph.phys.ucl.ac.be and amcatnlo.web.cern.ch # ################################################################################ """This is the main executable, a simple frontend to set up the PYTHONPATH and call immediately the command line interface scripts""" import os import sys root_path = os.path.split(os.path.dirname(os.path.realpath( __file__ )))[0] exe_path = os.path.join(root_path,'bin','mg5_aMC') print '\033[91mWarning: The script ./bin/mg5 will be removed in future versions; use ./bin/mg5_aMC instead.\033[0m' sys.argv.pop(0) if __debug__: os.system('%s -tt %s %s' %(sys.executable, str(exe_path) , ' '.join(sys.argv) )) else: os.system('%s -O -W ignore::DeprecationWarning %s %s' %(sys.executable, str(exe_path) , ' '.join(sys.argv) ))