Salome HOME
Show warning only in the verbose mode.
[modules/smesh.git] / src / SMESH_SWIG / smesh.py
index a764de5b9d873075dc63ef67284909824efa8639..99ab3db11d537af2fb76582b1450015b29d5f34b 100644 (file)
@@ -59,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 )