mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-25 03:50:34 +05:00
fix new license in MGCleaner
This commit is contained in:
parent
86b5d4b79b
commit
b1e37287d4
@ -525,18 +525,6 @@ class MGCleanerMonPlugDialog(Ui_MGCleanerPlugDialog,QWidget):
|
|||||||
|
|
||||||
def PrepareLigneCommande(self):
|
def PrepareLigneCommande(self):
|
||||||
"""
|
"""
|
||||||
#use doc examples of mg-cleaner:
|
|
||||||
ls -al /data/tmplgls/salome/prerequis/install/COMMON_64/MeshGems-1.0/bin
|
|
||||||
source /data/tmplgls/salome/prerequis/install/LICENSE/dlim8.var.sh
|
|
||||||
export PATH=/data/tmplgls/salome/prerequis/install/COMMON_64/MeshGems-1.0/bin/Linux_64:$PATH
|
|
||||||
cp -r /data/tmplgls/salome/prerequis/install/COMMON_64/MeshGems-1.0/examples .
|
|
||||||
cd examples
|
|
||||||
mg-cleaner.exe --help
|
|
||||||
mg-cleaner.exe --in case7.mesh --out case7-test.mesh --check
|
|
||||||
mg-cleaner.exe case7.mesh case7-fix.mesh --fix
|
|
||||||
mg-cleaner.exe --in Porsche.mesh --out Porsche-test.mesh --check
|
|
||||||
mg-cleaner.exe --in Porsche.mesh --out Porschefix.mesh --fix
|
|
||||||
mg-cleaner.exe --in Porsche.mesh --out PorscheNewfix.mesh --fix --resolution_length 0.03
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
#self.commande="mg-cleaner.exe --in " + self.fichierIn + " --out " + self.fichierOut + " --fix2pass"
|
#self.commande="mg-cleaner.exe --in " + self.fichierIn + " --out " + self.fichierOut + " --fix2pass"
|
||||||
@ -579,7 +567,7 @@ class MGCleanerMonPlugDialog(Ui_MGCleanerPlugDialog,QWidget):
|
|||||||
self.commande+=" --overlap_angle " + str(self.SP_OverlapAngle.value())
|
self.commande+=" --overlap_angle " + str(self.SP_OverlapAngle.value())
|
||||||
|
|
||||||
import SMeshHelper
|
import SMeshHelper
|
||||||
key = SMeshHelper.GetMGLicenseKey( self.self.fichierIn )
|
key = SMeshHelper.GetMGLicenseKey( self.fichierIn )
|
||||||
self.commande+=' --key ' + key
|
self.commande+=' --key ' + key
|
||||||
|
|
||||||
if verbose: print(("INFO: MGCCleaner command:\n %s" % self.commande))
|
if verbose: print(("INFO: MGCCleaner command:\n %s" % self.commande))
|
||||||
|
@ -35,11 +35,6 @@ from MGCleanerViewText_ui import Ui_ViewExe
|
|||||||
|
|
||||||
verbose = True
|
verbose = True
|
||||||
|
|
||||||
force = os.getenv("FORCE_DISTENE_LICENSE_FILE")
|
|
||||||
if force != None:
|
|
||||||
os.environ["DISTENE_LICENSE_FILE"] = force
|
|
||||||
os.environ["DLIM8VAR"] = "NOTHING"
|
|
||||||
|
|
||||||
class MGCleanerMonViewText(Ui_ViewExe, QDialog):
|
class MGCleanerMonViewText(Ui_ViewExe, QDialog):
|
||||||
"""
|
"""
|
||||||
Classe permettant la visualisation de texte
|
Classe permettant la visualisation de texte
|
||||||
|
@ -31,15 +31,6 @@ def MGCleanerLct(context):
|
|||||||
import tempfile
|
import tempfile
|
||||||
from qtsalome import QFileDialog, QMessageBox
|
from qtsalome import QFileDialog, QMessageBox
|
||||||
|
|
||||||
#prior test to avoid unnecessary user GUI work with ending crash
|
|
||||||
try :
|
|
||||||
os.environ['DISTENE_LICENSE_FILE']
|
|
||||||
except:
|
|
||||||
QMessageBox.warning(None, "Products", """\
|
|
||||||
Distene's product MeshGem Cleaner is not installed.
|
|
||||||
required environment variable:
|
|
||||||
DISTENE_LICENSE_FILE='.../dlim8.var.sh'""")
|
|
||||||
return
|
|
||||||
import MGCleanerMonPlugDialog
|
import MGCleanerMonPlugDialog
|
||||||
window = MGCleanerMonPlugDialog.getDialog()
|
window = MGCleanerMonPlugDialog.getDialog()
|
||||||
window.show()
|
window.show()
|
||||||
|
@ -34,11 +34,6 @@ from ViewText_ui import Ui_ViewExe
|
|||||||
|
|
||||||
verbose = True
|
verbose = True
|
||||||
|
|
||||||
force = os.getenv("FORCE_DISTENE_LICENSE_FILE")
|
|
||||||
if force != None:
|
|
||||||
os.environ["DISTENE_LICENSE_FILE"] = force
|
|
||||||
os.environ["DLIM8VAR"] = "NOTHING"
|
|
||||||
|
|
||||||
class MonViewText(Ui_ViewExe, QDialog):
|
class MonViewText(Ui_ViewExe, QDialog):
|
||||||
"""
|
"""
|
||||||
Classe permettant la visualisation de texte
|
Classe permettant la visualisation de texte
|
||||||
|
@ -31,15 +31,6 @@ def YamsLct(context):
|
|||||||
import tempfile
|
import tempfile
|
||||||
from qtsalome import QFileDialog, QMessageBox
|
from qtsalome import QFileDialog, QMessageBox
|
||||||
|
|
||||||
#prior test to avoid unnecessary user GUI work with ending crash
|
|
||||||
try :
|
|
||||||
os.environ['DISTENE_LICENSE_FILE']
|
|
||||||
except:
|
|
||||||
QMessageBox.warning(None,"Products","""\
|
|
||||||
Distene's product MeshGem SurfOpt is not installed.
|
|
||||||
required environment variable:
|
|
||||||
DISTENE_LICENSE_FILE='.../dlim8.var.sh'""")
|
|
||||||
return
|
|
||||||
import monYamsPlugDialog
|
import monYamsPlugDialog
|
||||||
window = monYamsPlugDialog.getDialog()
|
window = monYamsPlugDialog.getDialog()
|
||||||
window.show()
|
window.show()
|
||||||
|
Loading…
Reference in New Issue
Block a user