Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PAL6938
[modules/smesh.git]
/
src
/
SMESH_SWIG
/
SMESH_test5.py
diff --git
a/src/SMESH_SWIG/SMESH_test5.py
b/src/SMESH_SWIG/SMESH_test5.py
index 301917ddd86af5ead6cdcc83cc7e78782fb20b06..8a9e148dd186322d0f42241c09d4560f430bdd21 100644
(file)
--- 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()
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)
aMesh.ExportUNV(aFileName)
aMesh = smesh.CreateMeshesFromUNV(aFileName)
anSObj = salome.ObjectToSObject(aMesh)
@@
-68,7
+69,7
@@
aListDir = os.listdir(aPath)
print aListDir
for iFile in range(len(aListDir)) :
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)
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
ConvertMED2UNV(aPath,aFileName)
#break
-salome.sg.updateObjBrowser(1)
;
+salome.sg.updateObjBrowser(1)