From d6941cf3470c170ead7727966a851e564f027944 Mon Sep 17 00:00:00 2001 From: prascle Date: Tue, 9 Apr 2013 16:47:57 +0000 Subject: [PATCH] PR: restore missing attributes for compatibility with old scripts --- src/SMESH_SWIG/smesh.py | 2 ++ 1 file changed, 2 insertions(+) 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( ":" ): # -- 2.39.2