From 8b26d4794fe2eac00921062f8ad250cf8465032a Mon Sep 17 00:00:00 2001 From: eap Date: Sun, 11 Mar 2012 08:53:28 +0000 Subject: [PATCH] 0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module protect from exceptions at importing plugins --- src/SMESH_SWIG/smesh.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.39.2