Salome HOME
Copyright update 2021
[modules/smesh.git] / src / Tools / ZCracksPlug / main.py
index fb75c82e1f386965d7f8875451d58bdebfb3cd27..b6dc2d6a1795d2f7019e1b9fccea7ecf5010de02 100644 (file)
@@ -1,3 +1,22 @@
+# Copyright (C) 2016-2021  EDF R&D
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
 import sys, pickle, tempfile, shutil
 from os import path, getpid, environ, remove, system
 
@@ -431,9 +450,8 @@ class ShipHolderApplication(QGroupBox):
     else:
       import SMESH, salome
       #salome.salome_init()
-      theStudy = salome.myStudy
       from salome.smesh import smeshBuilder
-      smesh = smeshBuilder.New(theStudy)
+      smesh = smeshBuilder.New()
 
       ([objetSain], status) = smesh.CreateMeshesFromMED(saneFile)