From: eap Date: Sun, 11 Mar 2012 10:30:52 +0000 (+0000) Subject: 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH... X-Git-Tag: V6_5_0a1~58 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=344f1bff78064ff776ab424f2fbf110537887c38;p=modules%2Fsmesh.git 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module print errors occured while loading plugins --- diff --git a/src/SMESH_SWIG/smesh.py b/src/SMESH_SWIG/smesh.py index e9f7e0114..ebddea0b3 100644 --- a/src/SMESH_SWIG/smesh.py +++ b/src/SMESH_SWIG/smesh.py @@ -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)