]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Improve variables dump.
authorrnv <rnv@opencascade.com>
Tue, 18 Nov 2008 12:11:40 +0000 (12:11 +0000)
committerrnv <rnv@opencascade.com>
Tue, 18 Nov 2008 12:11:40 +0000 (12:11 +0000)
src/GEOM/GEOM_Engine.cxx

index 2d01a571965cf2d0faef03e90fca903c7e9ecf88..cb67914656457b486c82287fb0d2bca7ae3938d7 100644 (file)
@@ -63,6 +63,7 @@
 #define COMMA ','
 #define O_BRACKET '('
 #define C_BRACKET ')'
+#define PY_NULL "None"
 
 #ifdef _DEBUG_
 static int MYDEBUG = 0;
@@ -844,19 +845,20 @@ void ReplaceVariables(TCollection_AsciiString& theCommand,
     aVar = theCommand.SubString(aStartPos, aEndPos-1);
     if(MYDEBUG) 
       cout<<"Current variable 1: '"<< aVar <<"'"<<endl;
-    //If parameter is entry, skip it
+
     aVar.RightAdjust();
     aVar.LeftAdjust();
-
+    
     if(MYDEBUG) 
       cout<<"Current variable 2: '"<< aVar <<"'"<<endl;
     
-    if(theVariables.find(aVar) != theVariables.end())
+    //If parameter is entry or 'None', skip it
+    if(theVariables.find(aVar) != theVariables.end() || aVar == PY_NULL)
       continue;
-
+    
     aReplasedVar = aVariables[iVar].myVariable;
-   
-      
+    
+    
     if(aReplasedVar.IsEmpty()) {
       iVar++;
       continue;