From: eap Date: Sun, 11 Mar 2012 08:53:28 +0000 (+0000) Subject: 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH... X-Git-Tag: V6_5_0a1~62 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8b26d4794fe2eac00921062f8ad250cf8465032a;p=modules%2Fsmesh.git 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module protect from exceptions at importing plugins --- diff --git a/src/SMESH_SWIG/smesh.py b/src/SMESH_SWIG/smesh.py index 2a9dcfa3d..e9f7e0114 100644 --- a/src/SMESH_SWIG/smesh.py +++ b/src/SMESH_SWIG/smesh.py @@ -45,7 +45,10 @@ from smeshDC import Mesh, algoCreator for pluginName in os.environ["SMESH_MeshersList"].split(":"): pluginName += "DC" - exec("from %s import *" % pluginName ) + try: + exec("from %s import *" % pluginName ) + except: + continue exec("import %s" % pluginName ) plugin = eval(pluginName)