X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FTools%2FZCracksPlug%2Fzcracks_plugin.py;h=60a09a8e753688202add673946f2ae4a71466abc;hp=efc45b187c735cef1ac678edac3ed469e99b0543;hb=1746a461949c030eb46ccb860e586ade2e5de5e3;hpb=7eda9ca931ed2a11cb5e4637e4ffe19f5c061115 diff --git a/src/Tools/ZCracksPlug/zcracks_plugin.py b/src/Tools/ZCracksPlug/zcracks_plugin.py index efc45b187..60a09a8e7 100644 --- a/src/Tools/ZCracksPlug/zcracks_plugin.py +++ b/src/Tools/ZCracksPlug/zcracks_plugin.py @@ -18,21 +18,14 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -import SalomePyQt -sgPyQt = SalomePyQt.SalomePyQt() -import eficasSalome - -class EficasForZcracks(eficasSalome.MyEficas): - """ - """ - def __init__(self, fichier = None, version = None): - eficasSalome.MyEficas.__init__(self, sgPyQt.getDesktop(), - "ZCRACKS", - fichier, version = version) - #sgPyQt.createView(custom_appli.widgetname, self) - +import os def ZcracksLct(context): - - window=EficasForZcracks() - window.show() + import os,subprocess + command = ". ${ZCRACKSHOME}/salome_do_config.sh ; " + command += 'zcracksLaunch.py &' + if command is not "": + try: + subprocess.check_call(command, executable = '/bin/bash', shell = True, bufsize=-1) + except Exception, e: + print "Error: ",e