PR: restore missing attributes for compatibility with old scripts

This commit is contained in:
prascle 2013-04-09 16:47:57 +00:00
parent 3f1015c8e4
commit d6941cf347

View File

@ -43,11 +43,13 @@ try:
engineSmesh = salome.lcc.FindOrLoadComponent( "FactoryServer", "SMESH" )
smesh = smeshBuilder.New(salome.myStudy, engineSmesh)
except:
print "exception in smesh.py: instance creation failed"
smesh = None
pass
# load plugins and add dynamically generated methods to Mesh class,
# the same for for global variables declared by plug-ins
from salome.smesh.smeshBuilder import *
from salome.smesh.smeshBuilder import Mesh, algoCreator
for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ):
#