X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_SWIG%2FSMESH_test5.py;h=74a28c6ba4b27583eef86a91e06173c8652caa87;hb=refs%2Ftags%2FT3_2_0b2;hp=301917ddd86af5ead6cdcc83cc7e78782fb20b06;hpb=c3bf92bd87b770fd81631a3853f7f5bb1ac6a4e8;p=modules%2Fsmesh.git diff --git a/src/SMESH_SWIG/SMESH_test5.py b/src/SMESH_SWIG/SMESH_test5.py index 301917ddd..74a28c6ba 100644 --- a/src/SMESH_SWIG/SMESH_test5.py +++ b/src/SMESH_SWIG/SMESH_test5.py @@ -15,7 +15,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -# See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # # # @@ -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,12 +64,12 @@ 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 for iFile in range(len(aListDir)) : - aFileName = aListDir[iFile]; + aFileName = aListDir[iFile] aName,anExt = os.path.splitext(aFileName) if anExt == ".med" : aFileName = os.path.basename(aFileName) @@ -76,4 +77,4 @@ for iFile in range(len(aListDir)) : ConvertMED2UNV(aPath,aFileName) #break -salome.sg.updateObjBrowser(1); +salome.sg.updateObjBrowser(1)