From: eap Date: Fri, 13 Aug 2010 12:56:44 +0000 (+0000) Subject: -theFileName = thePath + "/Shapes/Brep/slots.brep" X-Git-Tag: end_translate_resources_09Jul10~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=99da90c8d273601622fa762c5a58bb4a3ccda90d;p=modules%2Fsmesh.git -theFileName = thePath + "/Shapes/Brep/slots.brep" +theFileName = os.path.join( thePath,"Shapes","Brep","slots.brep") --- diff --git a/src/SMESH_SWIG/SMESH_Nut.py b/src/SMESH_SWIG/SMESH_Nut.py index 801e554f1..62b6af8b9 100755 --- a/src/SMESH_SWIG/SMESH_Nut.py +++ b/src/SMESH_SWIG/SMESH_Nut.py @@ -87,7 +87,7 @@ geompy.addToStudy(Chamfer_2, "Chamfer_2") #Import of the shape from "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" +theFileName = os.path.join( thePath,"Shapes","Brep","slots.brep") theShapeForCut = geompy.ImportBREP(theFileName) geompy.addToStudy(theShapeForCut, "slot.brep_1")