X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FSMESH_SWIG%2Fsmesh.py;h=99ab3db11d537af2fb76582b1450015b29d5f34b;hb=2cd148d0668de3bfbeeceeb7df1995bb5b39475b;hp=ed09eab903033c9c076f6ec012af9241b3e33046;hpb=8fcd118698abab08738d16a2901e33542effe762;p=modules%2Fsmesh.git diff --git a/src/SMESH_SWIG/smesh.py b/src/SMESH_SWIG/smesh.py index ed09eab90..99ab3db11 100644 --- a/src/SMESH_SWIG/smesh.py +++ b/src/SMESH_SWIG/smesh.py @@ -32,9 +32,8 @@ import salome from salome import * -import GEOM -from salome.geom import geomBuilder -geompy = geomBuilder.New(salome.myStudy) +import geompy + import SMESH, SALOMEDS from salome.smesh import smeshBuilder @@ -60,7 +59,8 @@ for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ): try: exec( "from salome.%s.%s import *" % (pluginName, pluginBuilderName)) except Exception, e: - print "Exception while loading %s: %s" % ( pluginBuilderName, e ) + from salome_utils import verbose + if verbose(): print "Exception while loading %s: %s" % ( pluginBuilderName, e ) continue exec( "from salome.%s import %s" % (pluginName, pluginBuilderName)) plugin = eval( pluginBuilderName )