From: prascle Date: Tue, 9 Apr 2013 16:47:57 +0000 (+0000) Subject: PR: restore missing attributes for compatibility with old scripts X-Git-Tag: V7_2_0rc1~24 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d6941cf3470c170ead7727966a851e564f027944;p=modules%2Fsmesh.git PR: restore missing attributes for compatibility with old scripts --- diff --git a/src/SMESH_SWIG/smesh.py b/src/SMESH_SWIG/smesh.py index ab9a6f031..9cfc32f08 100644 --- a/src/SMESH_SWIG/smesh.py +++ b/src/SMESH_SWIG/smesh.py @@ -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( ":" ): #