mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
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:
parent
a75b6e066e
commit
834b58597d
@ -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 )
|
||||||
|
Loading…
Reference in New Issue
Block a user