From 344f1bff78064ff776ab424f2fbf110537887c38 Mon Sep 17 00:00:00 2001 From: eap Date: Sun, 11 Mar 2012 10:30:52 +0000 Subject: [PATCH] 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module print errors occured while loading plugins --- src/SMESH_SWIG/smesh.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2