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

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