X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FTools%2FYamsPlug%2FmonYamsPlugDialog.py;h=5186c0e80d6b63bad1d3cf0f315987ae58eed4d7;hb=HEAD;hp=477a2b4e4fbd5345bc03a41040663b6e418115e0;hpb=abc53b03caa20ab5394dd1452c80f7134f5bb103;p=modules%2Fsmesh.git diff --git a/src/Tools/YamsPlug/monYamsPlugDialog.py b/src/Tools/YamsPlug/monYamsPlugDialog.py index 477a2b4e4..49e5d4190 100644 --- a/src/Tools/YamsPlug/monYamsPlugDialog.py +++ b/src/Tools/YamsPlug/monYamsPlugDialog.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2007-2021 EDF R&D +# Copyright (C) 2007-2024 CEA, EDF # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -548,9 +548,10 @@ class MonYamsPlugDialog(Ui_YamsPlugDialog,QWidget): import SMeshHelper key = SMeshHelper.GetMGLicenseKey( self.fichierIn ) - self.commande+=' --key ' + key - - print(self.commande) + if key != "0": + self.commande+=' --key ' + key + + if verbose: print("INFO: MG-SurfOpt command:\n %s" % self.commande) return True def clean(self):