isinstance(obj, MEDLoader.obj_class) both return true.
%}
%include "MEDCouplingFinalize.i"
+
+%pythoncode %{
+
+# Give precedence to MEDCoupling namespace:
+import sys
+# If MEDLoader was already loaded override its namespace with the one from MEDCoupling:
+if sys.modules.has_key('MEDLoader'):
+ ml_mod = sys.modules['MEDLoader']
+ for k, v in sys.modules['MEDCoupling'].__dict__.items():
+ if (k.startswith("MED") or k.startswith("InterpKernel")) and type(v) is type(type):
+ exec("ml_mod.__dict__[k] = %s" % k)
+
+%}
del ParaMEDMEMDataArrayIntTupleImul
del ParaMEDMEMDataArrayIntTupleIdiv
del ParaMEDMEMDataArrayIntTupleImod
+
%}
%}
%include "MEDCouplingFinalize.i"
+
+%pythoncode %{
+
+# Give precedence to MEDCoupling namespace:
+import sys
+# If MEDLoader was already loaded override its namespace with the one from MEDCoupling:
+if sys.modules.has_key('MEDCoupling'):
+ mc_mod = sys.modules['MEDCoupling']
+ for k, v in mc_mod.__dict__.items():
+ if (k.startswith("MED") or k.startswith("InterpKernel")) and type(v) is type(type):
+ exec("%s = v" % k)
+
+%}