31 if not os.path.exists(filePath):
32 __fullFilePath__ = os.path.realpath(
34 os.environ.get(
'ENV_CMAKE_SOURCE_DIR',
''),
"GaudiHive",
36 if not os.path.exists(__fullFilePath__):
37 __fullFilePath__ = os.path.realpath(
39 os.environ.get(
'ENV_CMAKE_SOURCE_DIR',
''),
"Gaudi",
40 "GaudiHive",
"data", filePath))
41 if not os.path.exists(__fullFilePath__):
42 print(
"\nERROR: invalid file path '%s'. "
43 "It must be either absolute, or relative to "
44 "'$ENV_CMAKE_SOURCE_DIR/GaudiHive/data/' or to "
45 "'$ENV_CMAKE_SOURCE_DIR/Gaudi/GaudiHive/data/'." %
49 __fullFilePath__ = filePath
51 return __fullFilePath__