mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-13 17:18:35 +05:00
zcrack plugin disabled if eficas isn't installed
This commit is contained in:
parent
985e3a3629
commit
fa6a0c1c31
@ -24,7 +24,6 @@ import salome_pluginsmanager
|
|||||||
from spadderPlugin import runSpadderPlugin
|
from spadderPlugin import runSpadderPlugin
|
||||||
from meshcut_plugin import MeshCut
|
from meshcut_plugin import MeshCut
|
||||||
from yamsplug_plugin import YamsLct
|
from yamsplug_plugin import YamsLct
|
||||||
from zcracks_plugin import ZcracksLct
|
|
||||||
from MGCleanerplug_plugin import MGCleanerLct
|
from MGCleanerplug_plugin import MGCleanerLct
|
||||||
from blocFissure.ihm.fissureCoude_plugin import fissureCoudeDlg
|
from blocFissure.ihm.fissureCoude_plugin import fissureCoudeDlg
|
||||||
|
|
||||||
@ -47,6 +46,15 @@ salome_pluginsmanager.AddFunction('ReMesh with MGCleaner',
|
|||||||
salome_pluginsmanager.AddFunction('Meshed Pipe with a crack',
|
salome_pluginsmanager.AddFunction('Meshed Pipe with a crack',
|
||||||
'Create a mesh with blocFissure tool',
|
'Create a mesh with blocFissure tool',
|
||||||
fissureCoudeDlg)
|
fissureCoudeDlg)
|
||||||
salome_pluginsmanager.AddFunction('Run Zcrack',
|
|
||||||
'Run Zcrack',
|
enable_zcracks = True
|
||||||
ZcracksLct)
|
try:
|
||||||
|
import eficasSalome
|
||||||
|
except:
|
||||||
|
enable_zcracks = False
|
||||||
|
|
||||||
|
if enable_zcracks:
|
||||||
|
from zcracks_plugin import ZcracksLct
|
||||||
|
salome_pluginsmanager.AddFunction('Run Zcrack',
|
||||||
|
'Run Zcrack',
|
||||||
|
ZcracksLct)
|
||||||
|
Loading…
Reference in New Issue
Block a user