Salome HOME
Fix for bug PAL10426 ( SAMPLES_SRC: some examples doesn't have the correct path ).
[samples/datafiles.git] / Superv / Python / InLine_Nut.py
index 8a4f681c7419b676d81fc108004c01d07cd2eb13..19246350e6a163a30cfe405926ab2027d168d98c 100755 (executable)
@@ -46,8 +46,8 @@ def Geometry(y1=50, y2=90):
     Chamfer_2 = MakeChamferEdge(Chamfer_1, 10, 10, 21, 31 )
     addToStudy(Chamfer_2, "Chamfer_2")
     #Import of the shape from "slots.brep"
-    thePath = os.getenv("KERNEL_ROOT_DIR")
-    theFileName = thePath + "/examples/slots.brep"
+    thePath = os.getenv("DATA_DIR")
+    theFileName = thePath + "/Shapes/Brep/slots.brep"
     theShapeForCut = ImportBREP(theFileName)
     addToStudy(theShapeForCut, "slot.brep_1")
     #Cut applying