From 5fec7e4eb742072b134c5631c80bd3cbadc92681 Mon Sep 17 00:00:00 2001 From: mzn Date: Wed, 19 Oct 2005 14:01:04 +0000 Subject: [PATCH] Movement of examples to CVS EXAMPLES SAMPLES_SRC. --- src/SMESH_SWIG/SMESH_Nut.py | 6 +++--- src/SMESH_SWIG/SMESH_test5.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SMESH_SWIG/SMESH_Nut.py b/src/SMESH_SWIG/SMESH_Nut.py index 2a208b9a7..a4f5017cf 100755 --- a/src/SMESH_SWIG/SMESH_Nut.py +++ b/src/SMESH_SWIG/SMESH_Nut.py @@ -63,9 +63,9 @@ Chamfer_2 = geompy.MakeChamferEdge(Chamfer_1, 10, 10, 21, 31 ) geompy.addToStudy(Chamfer_2, "Chamfer_2") #Import of the shape from "slots.brep" -print "Import multi-rotation from the KERNEL_ROOT_DIR/examples/slots.brep" -thePath = os.getenv("KERNEL_ROOT_DIR") -theFileName = thePath + "/examples/slots.brep" +print "Import multi-rotation from the DATA_DIR/Shapes/Brep/slots.brep" +thePath = os.getenv("DATA_DIR") +theFileName = thePath + "/Shapes/Brep/slots.brep" theShapeForCut = geompy.ImportBREP(theFileName) geompy.addToStudy(theShapeForCut, "slot.brep_1") diff --git a/src/SMESH_SWIG/SMESH_test5.py b/src/SMESH_SWIG/SMESH_test5.py index 8a9e148dd..4b31dcbc3 100644 --- a/src/SMESH_SWIG/SMESH_test5.py +++ b/src/SMESH_SWIG/SMESH_test5.py @@ -64,7 +64,7 @@ def ConvertMED2UNV(thePath,theFile) : smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH") smesh.SetCurrentStudy(salome.myStudy) -aPath = os.getenv('KERNEL_ROOT_DIR') + '/examples/' +aPath = os.getenv('DATA_DIR') + '/MedFiles/' aListDir = os.listdir(aPath) print aListDir -- 2.39.2