From: rnc Date: Thu, 23 May 2013 09:55:31 +0000 (+0000) Subject: Patch to fix build issues do to sphinx importing python modules and causing SIGSEGV X-Git-Tag: V7_2_0p2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4f7b0accead02e5536525c9cb18e485bff869fad;p=modules%2Fsmesh.git Patch to fix build issues do to sphinx importing python modules and causing SIGSEGV --- diff --git a/src/SMESH_PY/smeshstudytools.py b/src/SMESH_PY/smeshstudytools.py index 5bf1250b0..7b83e570e 100644 --- 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: """