]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Regression of SALOME_TESTS/Grids/smesh/dump_study_00/B7
authoreap <eap@opencascade.com>
Fri, 15 Nov 2013 12:44:42 +0000 (12:44 +0000)
committereap <eap@opencascade.com>
Fri, 15 Nov 2013 12:44:42 +0000 (12:44 +0000)
In CheckObjectPresence(), skip print statement

src/SMESH_I/SMESH_2smeshpy.cxx

index 44cb333a54b7403ab4ef7c0652a3331984f94154..6b3da9a340f8a08fd7e8ac91c37608c0294fd79a 100644 (file)
@@ -201,6 +201,9 @@ namespace {
     _AString comment;
 
     _pyID obj = cmd->GetObject();
+    if ( obj.Search( "print " ) == 1 )
+      return; // print statement
+
     if ( !obj.IsEmpty() && obj.Value( obj.Length() ) == ')' )
       // remove an accessor method
       obj = _pyCommand( obj ).GetObject();