Salome HOME
Fix bug 12796: Warning missed for the bad file 'test18.med'
[modules/smesh.git] / src / SMESH_SWIG / SMESH_test5.py
index 7259b6e35efd7852c84f91a421cf37d21935e19e..74a28c6ba4b27583eef86a91e06173c8652caa87 100644 (file)
@@ -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,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