The Gaudi Framework  v37r1 (a7f61348)
GaudiHive.precedence Namespace Reference

Classes

class  CruncherSequence
 
class  RealTimeValue
 
class  RndBiasedBooleanValue
 
class  UniformBooleanValue
 
class  UniformTimeValue
 

Functions

def _buildFilePath (filePath)
 

Variables

 message
 
 category
 

Function Documentation

◆ _buildFilePath()

def GaudiHive.precedence._buildFilePath (   filePath)
private

Definition at line 26 of file precedence.py.

26 def _buildFilePath(filePath):
27  if not os.path.exists(filePath):
28  __fullFilePath__ = os.path.realpath(
29  os.path.join(
30  os.environ.get("ENV_PROJECT_SOURCE_DIR", ""),
31  "GaudiHive",
32  "data",
33  filePath,
34  )
35  )
36  if not os.path.exists(__fullFilePath__):
37  __fullFilePath__ = os.path.realpath(
38  os.path.join(
39  os.environ.get("ENV_PROJECT_SOURCE_DIR", ""),
40  "Gaudi",
41  "GaudiHive",
42  "data",
43  filePath,
44  )
45  )
46  if not os.path.exists(__fullFilePath__):
47  print(
48  "\nERROR: invalid file path '%s'. "
49  "It must be either absolute, or relative to "
50  "'$ENV_PROJECT_SOURCE_DIR/GaudiHive/data/' or to "
51  "'$ENV_PROJECT_SOURCE_DIR/Gaudi/GaudiHive/data/'." % filePath
52  )
53  sys.exit(1)
54  else:
55  __fullFilePath__ = filePath
56 
57  return __fullFilePath__
58 
59 

Variable Documentation

◆ category

GaudiHive.precedence.category

Definition at line 19 of file precedence.py.

◆ message

GaudiHive.precedence.message

Definition at line 19 of file precedence.py.

GaudiHive.precedence._buildFilePath
def _buildFilePath(filePath)
Definition: precedence.py:26