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/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=4f7b0accead02e5536525c9cb18e485bff869fad;hp=2e6e46ed604b59c7098e7c877ec83ebd8d8e4cd0 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: """