31 if not os.path.exists(filePath):
32 __fullFilePath__ = os.path.realpath(
34 os.environ.get(
"ENV_PROJECT_SOURCE_DIR",
""),
40 if not os.path.exists(__fullFilePath__):
41 __fullFilePath__ = os.path.realpath(
43 os.environ.get(
"ENV_PROJECT_SOURCE_DIR",
""),
50 if not os.path.exists(__fullFilePath__):
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
59 __fullFilePath__ = filePath
61 return __fullFilePath__