0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

adjust _pyHypothesisReader() for HexoticPLUGIN_ROOT_DIR but not HEXOTICPLUGIN_ROOT_DIR
This commit is contained in:
eap 2012-03-19 12:32:35 +00:00
parent a75b6e066e
commit 834b58597d

View File

@ -3783,7 +3783,12 @@ _pyHypothesisReader::_pyHypothesisReader()
rootDirVar += "_ROOT_DIR"; rootDirVar += "_ROOT_DIR";
const char* rootDir = getenv( rootDirVar.c_str() ); const char* rootDir = getenv( rootDirVar.c_str() );
if ( !rootDir || strlen(rootDir) == 0 ) continue; if ( !rootDir || strlen(rootDir) == 0 )
{
rootDirVar = plugin + "_ROOT_DIR"; // HexoticPLUGIN_ROOT_DIR
rootDir = getenv( rootDirVar.c_str() );
if ( !rootDir || strlen(rootDir) == 0 ) continue;
}
// get a separator from rootDir // get a separator from rootDir
for ( pos = strlen( rootDir )-1; pos >= 0 && sep.empty(); --pos ) for ( pos = strlen( rootDir )-1; pos >= 0 && sep.empty(); --pos )