]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Movement of examples to CVS EXAMPLES SAMPLES_SRC.
authormzn <mzn@opencascade.com>
Wed, 19 Oct 2005 14:01:04 +0000 (14:01 +0000)
committermzn <mzn@opencascade.com>
Wed, 19 Oct 2005 14:01:04 +0000 (14:01 +0000)
src/SMESH_SWIG/SMESH_Nut.py
src/SMESH_SWIG/SMESH_test5.py

index 2a208b9a70f400f3ae0767a041f286e379ef9210..a4f5017cfb8ca08ce3eb728e7206a6c2cb0d113d 100755 (executable)
@@ -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")
 
index 8a9e148dd186322d0f42241c09d4560f430bdd21..4b31dcbc3723a68fb8334c315d3d67c3bef15420 100644 (file)
@@ -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