From e28c954f8038a6ce9409509b93e958d2e375ef10 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Wed, 12 Dec 2018 16:09:43 +0100 Subject: [PATCH] Module separator for variable SALOME_MODULES_ORDER is changed from ',' to ':' because it is processed in parseConfigFile.py (KERNEL) and ',' is a separator: duplicates are removed with a sequence "split, set, join" and the set let the variables in a random order. When we have SALOME_MODULES_ORDER=SHAPER,GEOM,SMESH we can get SMESH,GEOM,SHAPER as a resulting order and the dump is wrong. We must now write: SALOME_MODULES_ORDER="SHAPER:GEOM:SMESH" --- src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx index 56718e43f..c8d893cf7 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx @@ -2065,7 +2065,7 @@ bool SALOMEDSImpl_Study::DumpStudy(const std::string& thePath, std::string order = getenv("SALOME_MODULES_ORDER"); std::vector mlist; while ( !order.empty() ) { - size_t idx = order.find( "," ); + size_t idx = order.find( ":" ); std::string m = order.substr(0, idx); order = order.substr( ( idx == std::string::npos ) ? order.size() : idx+1 ); if ( m.empty() || std::find( mlist.begin(), mlist.end(), m ) != mlist.end() ) continue; -- 2.39.2