28 if not os.path.exists(filePath):
29 __fullFilePath__ = os.path.realpath(
31 os.environ.get(
"ENV_PROJECT_SOURCE_DIR",
""),
37 if not os.path.exists(__fullFilePath__):
38 __fullFilePath__ = os.path.realpath(
40 os.environ.get(
"ENV_PROJECT_SOURCE_DIR",
""),
47 if not os.path.exists(__fullFilePath__):
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
56 __fullFilePath__ = filePath
58 return __fullFilePath__