X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=HLT%2FBASE%2FAliHLT_C_Component_WrapperInterface.cxx;h=e4329d96659bcdba214ff22cafaa387ba9f040b8;hp=f53f65a4e241a3d3b62d1ea51fd10eb7c29d1ec8;hb=579d9eb79be7cb4575ff09392324e47da4a81e12;hpb=16718cdc0c27de3c33a2ec36bf1f879cfe6bba7d diff --git a/HLT/BASE/AliHLT_C_Component_WrapperInterface.cxx b/HLT/BASE/AliHLT_C_Component_WrapperInterface.cxx index f53f65a4e24..e4329d96659 100644 --- a/HLT/BASE/AliHLT_C_Component_WrapperInterface.cxx +++ b/HLT/BASE/AliHLT_C_Component_WrapperInterface.cxx @@ -90,6 +90,11 @@ int AliHLT_C_CreateComponent( const char* componentType, void* environ_param, in if ( !handle ) return EINVAL; AliHLTComponent* comp; int ret = gComponentHandler_C->CreateComponent( componentType, environ_param, argc, argv, comp ); + if (comp) { + const char* cdbPath = getenv("ALIHLT_HCDBDIR"); + if (!cdbPath) cdbPath = getenv("ALICE_ROOT"); + if (cdbPath) comp->InitCDB(cdbPath); + } *handle = reinterpret_cast( comp ); return ret;