X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH_SWIG%2FSMESH_test5.py;h=4b31dcbc3723a68fb8334c315d3d67c3bef15420;hp=7259b6e35efd7852c84f91a421cf37d21935e19e;hb=5fec7e4eb742072b134c5631c80bd3cbadc92681;hpb=e4737e85f0da6d3f90fd08f6be1c2825195fe16f diff --git a/src/SMESH_SWIG/SMESH_test5.py b/src/SMESH_SWIG/SMESH_test5.py index 7259b6e35..4b31dcbc3 100644 --- a/src/SMESH_SWIG/SMESH_test5.py +++ b/src/SMESH_SWIG/SMESH_test5.py @@ -50,7 +50,8 @@ def ConvertMED2UNV(thePath,theFile) : SetSObjName(anSObj,aFileName) print anSObj.GetName() - aFileName = thePath + theFile + "." + str(iMesh) + ".unv" + aOutPath = '/tmp/' + aFileName = aOutPath + theFile + "." + str(iMesh) + ".unv" aMesh.ExportUNV(aFileName) aMesh = smesh.CreateMeshesFromUNV(aFileName) anSObj = salome.ObjectToSObject(aMesh) @@ -63,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