From: akk Date: Wed, 27 Dec 2006 12:22:08 +0000 (+0000) Subject: Fix for IPAL14235. Addition of possibility to use script in batch mode. X-Git-Tag: V3_2_5pre1~41 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=60025821aa3babee4f38ccff3b84649d6086b326 Fix for IPAL14235. Addition of possibility to use script in batch mode. --- diff --git a/src/SMESH_SWIG/SMESH_test1_AndDisplay.py b/src/SMESH_SWIG/SMESH_test1_AndDisplay.py index 106297125..e1a5e01d2 100644 --- a/src/SMESH_SWIG/SMESH_test1_AndDisplay.py +++ b/src/SMESH_SWIG/SMESH_test1_AndDisplay.py @@ -107,4 +107,5 @@ mesh.Compute() salome.sg.updateObjBrowser(1); sg = salome.ImportComponentGUI('SMESH') -sg.CreateAndDisplayActor('0:1:2:3') +if type(sg) != type(salome.salome_ComponentGUI): + sg.CreateAndDisplayActor('0:1:2:3')