From 5f7a23144de15898a17a0f06a710dca2b6bcfa30 Mon Sep 17 00:00:00 2001 From: abn Date: Fri, 28 Feb 2014 15:50:36 +0100 Subject: [PATCH] SWIG: give precedence to MEDCoupling namespace when both MEDLoader and MEDCoupling were loaded. Include InterpKernelException. --- src/MEDLoader/Swig/MEDLoaderCommon.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MEDLoader/Swig/MEDLoaderCommon.i b/src/MEDLoader/Swig/MEDLoaderCommon.i index 99c52a16c..742b814bf 100644 --- a/src/MEDLoader/Swig/MEDLoaderCommon.i +++ b/src/MEDLoader/Swig/MEDLoaderCommon.i @@ -31,7 +31,7 @@ import sys if sys.modules.has_key('MEDCoupling'): mc_mod = sys.modules['MEDCoupling'] for k, v in mc_mod.__dict__.items(): - if k.startswith("MED") and type(v) is type(type): + if (k.startswith("MED") or k.startswith("InterpKernel")) and type(v) is type(type): exec("_MEDLoader.%s_swigregister = lambda x: None" % k) %} -- 2.39.2