From 912e56d747be0112d7b45fed416c1f9962d2e1a2 Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 12 Jul 2006 14:34:12 +0000 Subject: [PATCH] PAL12755: SALOME frozen with 'Load Script' and a python module. A fix by Christian CAREMOLI. --- src/SMESHGUI/SMESHGUI_Swig.i | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/SMESHGUI/SMESHGUI_Swig.i b/src/SMESHGUI/SMESHGUI_Swig.i index eadd476e4..fe3925989 100644 --- a/src/SMESHGUI/SMESHGUI_Swig.i +++ b/src/SMESHGUI/SMESHGUI_Swig.i @@ -30,6 +30,13 @@ #include "SMESHGUI_Swig.hxx" %} +/* Exception handler for all functions */ +%exception { + Py_BEGIN_ALLOW_THREADS + $action + Py_END_ALLOW_THREADS +} + %include "typemaps.i" class SMESH_Swig -- 2.39.2