Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Patch to fix build issues do to sphinx importing python modules and causing SIGSEGV
[modules/smesh.git]
/
src
/
SMESH_PY
/
smeshstudytools.py
diff --git
a/src/SMESH_PY/smeshstudytools.py
b/src/SMESH_PY/smeshstudytools.py
index 5bf1250b06ce045d435bf5ae540ff4acc17dc51c..7b83e570e25e0dc5339059e417d7d205dad53bb8 100644
(file)
--- a/
src/SMESH_PY/smeshstudytools.py
+++ b/
src/SMESH_PY/smeshstudytools.py
@@
-27,10
+27,9
@@
import salome
SMESH = None # SMESH module is loaded only when needed
from salome.kernel.studyedit import getStudyEditor
SMESH = None # SMESH module is loaded only when needed
from salome.kernel.studyedit import getStudyEditor
-try:
- from salome.gui import helper
-except ImportError:
- pass
+from salome.kernel.deprecation import is_called_by_sphinx
+if not is_called_by_sphinx():
+ from salome.gui import helper
class SMeshStudyTools:
"""
class SMeshStudyTools:
"""