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/"
This commit is contained in:
enk 2005-01-18 07:30:55 +00:00
parent 1e59cc2426
commit 75e4a331f5

View File

@ -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)