Salome HOME
PR: reorganise smesh plugins and correct MeshCut when there are groups
[modules/smesh.git] / src / Tools / MeshCut / meshcut_plugin.py
index e47e7e897d90450f00ba75b6a8dce5e48adc0329..600e09f1098789b2383f5b0da0b6fda7b66b41a6 100644 (file)
@@ -20,8 +20,6 @@
 # if you already have plugins defined in a salome_plugins.py file, add this file at the end.
 # if not, copy this file as ${HOME}/Plugins/smesh_plugins.py or ${APPLI}/Plugins/smesh_plugins.py
 
-import salome_pluginsmanager
-
 def MeshCut(context):
   # get context study, studyId, salomeGui
   study = context.study
@@ -31,6 +29,7 @@ def MeshCut(context):
   import os
   import subprocess
   import tempfile
+  from PyQt4 import QtCore
   from PyQt4 import QtGui
   from PyQt4.QtGui import QFileDialog
   from PyQt4.QtGui import QMessageBox
@@ -139,7 +138,3 @@ and T the tolerance.
       pass
     pass
   pass
-
-# register the function in the plugin manager
-salome_pluginsmanager.AddFunction('MeshCut', 'Cut a tetrahedron mesh by a plane', MeshCut)
-