1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2013-2016 EDF R&D
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 # if you already have plugins defined in a salome_plugins.py file, add this file at the end.
22 # if not, copy this file as ${HOME}/Plugins/smesh_plugins.py or ${APPLI}/Plugins/smesh_plugins.py
24 def MGCleanerLct(context):
25 # get context study, salomeGui
32 from qtsalome import QFileDialog, QMessageBox
34 #prior test to avoid unnecessary user GUI work with ending crash
36 os.environ['DISTENE_LICENSE_FILE']
38 QMessageBox.warning(None, "Products", """\
39 Distene's product MeshGem Cleaner is not installed.
40 required environment variable:
41 DISTENE_LICENSE_FILE='.../dlim8.var.sh'""")
43 import MGCleanerMonPlugDialog
44 window = MGCleanerMonPlugDialog.getDialog()