~maddevelopers/mg5amcnlo/WWW5_caching

« back to all changes in this revision

Viewing changes to users/mardelcourt/PROC_242195/PROC_242195/bin/internal/__init__.py

  • Committer: John Doe
  • Date: 2013-03-25 20:27:02 UTC
  • Revision ID: john.doe@gmail.com-20130325202702-5sk3t1r8h33ca4p4
first clean version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
################################################################################
 
2
#
 
3
# Copyright (c) 2009 The MadGraph Development team and Contributors
 
4
#
 
5
# This file is a part of the MadGraph 5 project, an application which 
 
6
# automatically generates Feynman diagrams and matrix elements for arbitrary
 
7
# high-energy processes in the Standard Model and beyond.
 
8
#
 
9
# It is subject to the MadGraph license which should accompany this 
 
10
# distribution.
 
11
#
 
12
# For more information, please visit: http://madgraph.phys.ucl.ac.be
 
13
#
 
14
################################################################################
 
15
class MadGraph5Error(Exception):
 
16
    """Exception raised if an exception is find 
 
17
    Those Types of error will stop nicely in the cmd interface"""
 
18
 
 
19
class InvalidCmd(MadGraph5Error):
 
20
    """a class for the invalid syntax call"""
 
21
 
 
22
class aMCatNLOError(MadGraph5Error):
 
23
    """A MC@NLO error"""
 
24
 
 
25
import os
 
26
 
 
27
#Look for basic file position MG5DIR and MG4DIR
 
28
MG5DIR = os.path.realpath(os.path.join(os.path.dirname(__file__),
 
29
                                                                os.path.pardir))
 
30
MG4DIR = MG5DIR