From c211b11fa1eb4bbf4514efda6ddbe12d81d8d2c5 Mon Sep 17 00:00:00 2001 From: prascle Date: Wed, 10 Apr 2013 09:16:19 +0000 Subject: [PATCH] PR: missing imports when tests are executed alone --- src/SMESH_SWIG/SMESH_controls.py | 2 ++ src/SMESH_SWIG/SMESH_fixation_hexa.py | 1 + src/SMESH_SWIG/SMESH_fixation_netgen.py | 1 + src/SMESH_SWIG/SMESH_fixation_tetra.py | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.2