0021308: Remove hard-coded dependency of the external mesh plugins from the SMESH module

print errors occured while loading plugins
This commit is contained in:
eap 2012-03-11 10:30:52 +00:00
parent 28bb38ba81
commit 344f1bff78

View File

@ -47,7 +47,8 @@ for pluginName in os.environ["SMESH_MeshersList"].split(":"):
pluginName += "DC" pluginName += "DC"
try: try:
exec("from %s import *" % pluginName ) exec("from %s import *" % pluginName )
except: except Exception, e:
print "Exception while loading %s: %s" % ( pluginName, e )
continue continue
exec("import %s" % pluginName ) exec("import %s" % pluginName )
plugin = eval(pluginName) plugin = eval(pluginName)