From: prascle Date: Wed, 10 Apr 2013 09:16:19 +0000 (+0000) Subject: PR: missing imports when tests are executed alone X-Git-Tag: V7_2_0rc1~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c211b11fa1eb4bbf4514efda6ddbe12d81d8d2c5;p=modules%2Fsmesh.git PR: missing imports when tests are executed alone --- diff --git a/src/SMESH_SWIG/SMESH_controls.py b/src/SMESH_SWIG/SMESH_controls.py index e2ff1be23..5084f5c4d 100644 --- a/src/SMESH_SWIG/SMESH_controls.py +++ b/src/SMESH_SWIG/SMESH_controls.py @@ -25,11 +25,13 @@ # Author : Sergey LITONIN # Module : SMESH # +import salome import SMESH_mechanic import SMESH, SALOMEDS from salome.smesh import smeshBuilder smesh = smeshBuilder.New(salome.myStudy) +mesh = SMESH_mechanic.mesh # ---- Criterion : AREA > 100 diff --git a/src/SMESH_SWIG/SMESH_fixation_hexa.py b/src/SMESH_SWIG/SMESH_fixation_hexa.py index edcfef821..489a2971f 100644 --- a/src/SMESH_SWIG/SMESH_fixation_hexa.py +++ b/src/SMESH_SWIG/SMESH_fixation_hexa.py @@ -25,6 +25,7 @@ # SMESH_fixation.py # Hypothesis and algorithms for the mesh generation are global # +import salome import SMESH_fixation import SMESH, SALOMEDS diff --git a/src/SMESH_SWIG/SMESH_fixation_netgen.py b/src/SMESH_SWIG/SMESH_fixation_netgen.py index d6f38cbc0..1f31fdd20 100644 --- a/src/SMESH_SWIG/SMESH_fixation_netgen.py +++ b/src/SMESH_SWIG/SMESH_fixation_netgen.py @@ -25,6 +25,7 @@ # SMESH_fixation.py # The new Netgen algorithm is used that discretizes baoundaries itself # +import salome import SMESH_fixation import SMESH, SALOMEDS diff --git a/src/SMESH_SWIG/SMESH_fixation_tetra.py b/src/SMESH_SWIG/SMESH_fixation_tetra.py index 9896da034..77d1d37e1 100644 --- a/src/SMESH_SWIG/SMESH_fixation_tetra.py +++ b/src/SMESH_SWIG/SMESH_fixation_tetra.py @@ -25,7 +25,7 @@ # SMESH_fixation.py # Hypothesis and algorithms for the mesh generation are global # - +import salome import SMESH_fixation import SMESH, SALOMEDS