mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 13:50:34 +05:00
PR: restore missing attributes for compatibility with old scripts
This commit is contained in:
parent
3f1015c8e4
commit
d6941cf347
@ -43,11 +43,13 @@ try:
|
|||||||
engineSmesh = salome.lcc.FindOrLoadComponent( "FactoryServer", "SMESH" )
|
engineSmesh = salome.lcc.FindOrLoadComponent( "FactoryServer", "SMESH" )
|
||||||
smesh = smeshBuilder.New(salome.myStudy, engineSmesh)
|
smesh = smeshBuilder.New(salome.myStudy, engineSmesh)
|
||||||
except:
|
except:
|
||||||
|
print "exception in smesh.py: instance creation failed"
|
||||||
smesh = None
|
smesh = None
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# load plugins and add dynamically generated methods to Mesh class,
|
# load plugins and add dynamically generated methods to Mesh class,
|
||||||
# the same for for global variables declared by plug-ins
|
# the same for for global variables declared by plug-ins
|
||||||
|
from salome.smesh.smeshBuilder import *
|
||||||
from salome.smesh.smeshBuilder import Mesh, algoCreator
|
from salome.smesh.smeshBuilder import Mesh, algoCreator
|
||||||
for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ):
|
for pluginName in os.environ[ "SMESH_MeshersList" ].split( ":" ):
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user