Trees | Indices | Help |
---|
|
1 ################################################################################ 2 # 3 # Copyright (c) 2009 The MadGraph5_aMC@NLO Development team and Contributors 4 # 5 # This file is a part of the MadGraph5_aMC@NLO 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 MadGraph5_aMC@NLO license which should accompany this 10 # distribution. 11 # 12 # For more information, visit madgraph.phys.ucl.ac.be and amcatnlo.web.cern.ch 13 # 14 ################################################################################ 18 21 24 25 import os 26 import logging 27 import time 28 29 #Look for basic file position MG5DIR and MG4DIR 30 MG5DIR = os.path.realpath(os.path.join(os.path.dirname(__file__), 31 os.path.pardir)) 32 if ' ' in MG5DIR: 33 logging.critical('''\033[1;31mpath to MG5: "%s" contains space. 34 This is likely to create code unstability. 35 Please consider changing the path location of the code\033[0m''' % MG5DIR) 36 time.sleep(1) 37 MG4DIR = MG5DIR 38 ReadWrite = os.access(MG5DIR, os.W_OK) # W_OK is for writing 39
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Nov 6 16:30:24 2014 | http://epydoc.sourceforge.net |