]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix for IPAL14235. Addition of possibility to use script in batch mode.
authorakk <akk@opencascade.com>
Wed, 27 Dec 2006 12:22:08 +0000 (12:22 +0000)
committerakk <akk@opencascade.com>
Wed, 27 Dec 2006 12:22:08 +0000 (12:22 +0000)
src/SMESH_SWIG/SMESH_test1_AndDisplay.py

index 106297125645169ce347b339a06d399d787b09d0..e1a5e01d2a4c7422f7d8bba9f4dacfe6122bd7ea 100644 (file)
@@ -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')