from spadderPlugin import runSpadderPlugin
from meshcut_plugin import MeshCut
from yamsplug_plugin import YamsLct
-from zcracks_plugin import ZcracksLct
from MGCleanerplug_plugin import MGCleanerLct
from blocFissure.ihm.fissureCoude_plugin import fissureCoudeDlg
salome_pluginsmanager.AddFunction('Meshed Pipe with a crack',
'Create a mesh with blocFissure tool',
fissureCoudeDlg)
-salome_pluginsmanager.AddFunction('Run Zcrack',
- 'Run Zcrack',
- ZcracksLct)
+
+enable_zcracks = True
+try:
+ import eficasSalome
+except:
+ enable_zcracks = False
+
+if enable_zcracks:
+ from zcracks_plugin import ZcracksLct
+ salome_pluginsmanager.AddFunction('Run Zcrack',
+ 'Run Zcrack',
+ ZcracksLct)