Salome HOME
Patch to fix build issues do to sphinx importing python modules and causing SIGSEGV
[modules/smesh.git] / src / SMESH_PY / smeshstudytools.py
index 5bf1250b06ce045d435bf5ae540ff4acc17dc51c..7b83e570e25e0dc5339059e417d7d205dad53bb8 100644 (file)
@@ -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:
     """