~maddevelopers/mg5amcnlo/2.9.4

« back to all changes in this revision

Viewing changes to bin/mg5

pass to v2.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /usr/bin/env python
 
2
 
 
3
################################################################################
 
4
#
 
5
# Copyright (c) 2009 The MadGraph5_aMC@NLO Development team and Contributors
 
6
#
 
7
# This file is a part of the MadGraph5_aMC@NLO project, an application which 
 
8
# automatically generates Feynman diagrams and matrix elements for arbitrary
 
9
# high-energy processes in the Standard Model and beyond.
 
10
#
 
11
# It is subject to the MadGraph5_aMC@NLO license which should accompany this 
 
12
# distribution.
 
13
#
 
14
# For more information, visit madgraph.phys.ucl.ac.be and amcatnlo.web.cern.ch
 
15
#
 
16
################################################################################
 
17
"""This is the main executable, a simple frontend to set up the PYTHONPATH
 
18
and call immediately the command line interface scripts"""
 
19
 
 
20
import os
 
21
import sys
 
22
 
 
23
root_path = os.path.split(os.path.dirname(os.path.realpath( __file__ )))[0]
 
24
 
 
25
exe_path = os.path.join(root_path,'bin','mg5_aMC')
 
26
 
 
27
print '\033[91mWarning: The script ./bin/mg5 will be removed in future versions; use ./bin/mg5_aMC instead.\033[0m'
 
28
 
 
29
sys.argv.pop(0)
 
30
os.system('%s %s' %( str(exe_path) , ' '.join(sys.argv) ))