The Gaudi Framework  v36r9p1 (5c15b2bb)
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 29 of file precedence.py.

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

Variable Documentation

◆ category

GaudiHive.precedence.category

Definition at line 22 of file precedence.py.

◆ message

GaudiHive.precedence.message

Definition at line 22 of file precedence.py.

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