Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2e6e46e
)
Patch to fix build issues do to sphinx importing python modules and causing SIGSEGV
V7_2_0p2
author
rnc
<rnc@opencascade.com>
Thu, 23 May 2013 09:55:31 +0000
(09:55 +0000)
committer
rnc
<rnc@opencascade.com>
Thu, 23 May 2013 09:55:31 +0000
(09:55 +0000)
src/SMESH_PY/smeshstudytools.py
patch
|
blob
|
history
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
-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:
"""