From: vsr Date: Mon, 21 Feb 2005 06:05:00 +0000 (+0000) Subject: Fix a bug - salome.py is not imported here and this causes run-time Python exception X-Git-Tag: V2_2_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b85751e356c091d2dffe8366a94fbb42bfcad34e;p=modules%2Fsmesh.git Fix a bug - salome.py is not imported here and this causes run-time Python exception --- diff --git a/src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py b/src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py index 660d3ad1b..26097adb8 100644 --- a/src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py +++ b/src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py @@ -1,9 +1,7 @@ -import SMESH +from meshpy import * def BuildGroupLyingOn(theMesh, theElemType, theName, theShape): - aMeshGen = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH") - - aFilterMgr = aMeshGen.CreateFilterManager() + aFilterMgr = smesh.CreateFilterManager() aFilter = aFilterMgr.CreateFilter() aLyingOnGeom = aFilterMgr.CreateLyingOnGeom()