From: abn Date: Fri, 28 Feb 2014 14:50:36 +0000 (+0100) Subject: SWIG: give precedence to MEDCoupling namespace when both MEDLoader and X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5f7a23144de15898a17a0f06a710dca2b6bcfa30;p=tools%2Fmedcoupling.git SWIG: give precedence to MEDCoupling namespace when both MEDLoader and MEDCoupling were loaded. Include InterpKernelException. --- 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) %}