mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 16:10:37 +05:00
0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module
protect from exceptions at importing plugins
This commit is contained in:
parent
649673b639
commit
8b26d4794f
@ -45,7 +45,10 @@ from smeshDC import Mesh, algoCreator
|
|||||||
for pluginName in os.environ["SMESH_MeshersList"].split(":"):
|
for pluginName in os.environ["SMESH_MeshersList"].split(":"):
|
||||||
|
|
||||||
pluginName += "DC"
|
pluginName += "DC"
|
||||||
|
try:
|
||||||
exec("from %s import *" % pluginName )
|
exec("from %s import *" % pluginName )
|
||||||
|
except:
|
||||||
|
continue
|
||||||
exec("import %s" % pluginName )
|
exec("import %s" % pluginName )
|
||||||
plugin = eval(pluginName)
|
plugin = eval(pluginName)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user