From 4f7b0accead02e5536525c9cb18e485bff869fad Mon Sep 17 00:00:00 2001 From: rnc Date: Thu, 23 May 2013 09:55:31 +0000 Subject: [PATCH] Patch to fix build issues do to sphinx importing python modules and causing SIGSEGV --- src/SMESH_PY/smeshstudytools.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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: """ -- 2.39.2