Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bos #18641 [CEA 18636][Windows] SMESH_MeshersList environment variable separator
[modules/smesh.git]
/
src
/
SMESH
/
SMESH_Gen.cxx
diff --git
a/src/SMESH/SMESH_Gen.cxx
b/src/SMESH/SMESH_Gen.cxx
index 1e9c1471a1e404d52c46ef6385ab35fb437f9ca9..9c34d8a025127a486a8ed41c8ddfc592c5b3d736 100644
(file)
--- a/
src/SMESH/SMESH_Gen.cxx
+++ b/
src/SMESH/SMESH_Gen.cxx
@@
-56,6
+56,13
@@
using namespace std;
using namespace std;
+// Environment variable separator
+#ifdef WIN32
+ #define env_sep ';'
+#else
+ #define env_sep ':'
+#endif
+
//=============================================================================
/*!
* Constructor
//=============================================================================
/*!
* Constructor
@@
-984,7
+991,7
@@
std::vector< std::string > SMESH_Gen::GetPluginXMLPaths()
while ( from < meshers.size() )
{
// cut off plugin name
while ( from < meshers.size() )
{
// cut off plugin name
- pos = meshers.find(
':'
, from );
+ pos = meshers.find(
env_sep
, from );
if ( pos != string::npos )
plugin = meshers.substr( from, pos-from );
else
if ( pos != string::npos )
plugin = meshers.substr( from, pos-from );
else