]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
code improvement mpa/23299
authormpa <mpa@opencascade.com>
Wed, 8 Feb 2017 09:47:28 +0000 (12:47 +0300)
committermpa <mpa@opencascade.com>
Wed, 8 Feb 2017 09:47:28 +0000 (12:47 +0300)
src/GEOM_SWIG/PAL_MESH_028_geometry.py

index 5de0e34f0f93dc85185ddbf3f9816d0bb083459d..45dbbd78ed11df2b5662f7b429125fc6923be724 100755 (executable)
@@ -80,11 +80,11 @@ theFilenameToSave = theHomePath + "/Pyramid.hdf"
 if os.access(theFilenameToSave, os.F_OK):
     if os.access(theFilenameToSave, os.W_OK):
         os.remove(theFilenameToSave)
-        salome.myStudy.SaveAs(theFilenameToSave, 0)
+        salome.myStudy.SaveAs(theFilenameToSave, 0, 0)
     else:
         print "You have no enough permissions to overwrite HDF file: ",theFilenameToSave
 else:
-    salome.myStudy.SaveAs(theFilenameToSave, 0)
+    salome.myStudy.SaveAs(theFilenameToSave, 0, 0)
     
 
 salome.sg.updateObjBrowser()