]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Patch to fix build issues do to sphinx importing python modules and causing SIGSEGV V7_2_0p2
authorrnc <rnc@opencascade.com>
Thu, 23 May 2013 09:55:31 +0000 (09:55 +0000)
committerrnc <rnc@opencascade.com>
Thu, 23 May 2013 09:55:31 +0000 (09:55 +0000)
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:
     """