X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_SWIG%2Fsmesh.py;h=a764de5b9d873075dc63ef67284909824efa8639;hb=3fefd303ac5efcb36f07b6803d8a8600a5c8d2ca;hp=716cd5b8672c96b49cf7951da31b317e7e79e6e9;hpb=5a81ec850d8fd1fefffd99b508721d4cdea8f43f;p=modules%2Fsmesh.git diff --git a/src/SMESH_SWIG/smesh.py b/src/SMESH_SWIG/smesh.py index 716cd5b86..a764de5b9 100644 --- a/src/SMESH_SWIG/smesh.py +++ b/src/SMESH_SWIG/smesh.py @@ -33,6 +33,7 @@ import salome from salome import * import geompy + import SMESH, SALOMEDS from salome.smesh import smeshBuilder @@ -96,19 +97,19 @@ The following changes in your scripts are required to avoid this message: replace ------- -import smesh, SMESH, SALOMEDS +import smesh, SMESH smesh.SetCurrentStudy(theStudy) with ---- -import SMESH, SALOMEDS +import SMESH from salome.smesh import smeshBuilder smesh = smeshBuilder.New(salome.myStudy) you also need to modify some lines where smeshBuilder is used instead of smesh -algo=smesh.xxxx ==> algo.smeshBuilder.xxxx +algo=smesh.xxxx ==> algo=smeshBuilder.xxxx See also SMESH User's Guide for more details