Salome HOME
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH...
authoreap <eap@opencascade.com>
Sun, 11 Mar 2012 10:30:52 +0000 (10:30 +0000)
committereap <eap@opencascade.com>
Sun, 11 Mar 2012 10:30:52 +0000 (10:30 +0000)
   print errors occured while loading plugins

src/SMESH_SWIG/smesh.py

index e9f7e01142f4654d1e03f13f5b0a7080bf675a67..ebddea0b39ce16df55437f1c7b9d0ca2dc4b7d29 100644 (file)
@@ -47,7 +47,8 @@ for pluginName in os.environ["SMESH_MeshersList"].split(":"):
   pluginName += "DC"
   try:
     exec("from %s import *" % pluginName )
-  except:
+  except Exception, e:
+    print "Exception while loading %s: %s" % ( pluginName, e )
     continue
   exec("import %s" % pluginName )
   plugin = eval(pluginName)