From: enk Date: Tue, 18 Jan 2005 07:30:55 +0000 (+0000) Subject: Bug PAL7728 Thre is an error after trying to import "SMESH_test5.py" via python console. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=75e4a331f5535b2810e9ac3d684bb4b2dba375d2;p=modules%2Fsmesh.git Bug PAL7728 Thre is an error after trying to import "SMESH_test5.py" via python console. Note: In the script used output directory for unv files with no write permissions. Fix: Directory changed to "/tmp/" --- diff --git a/src/SMESH_SWIG/SMESH_test5.py b/src/SMESH_SWIG/SMESH_test5.py index 7259b6e35..8a9e148dd 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)