diff --git a/Lib/python/pyinit.swg b/Lib/python/pyinit.swg index b44c2c893..38822e414 100644 --- a/Lib/python/pyinit.swg +++ b/Lib/python/pyinit.swg @@ -401,6 +401,12 @@ SWIG_init(void) { #else m = Py_InitModule((char *) SWIG_name, SwigMethods); #endif + +#ifdef SWIGPYTHON_BUILTIN + PyObject *self = m; + (void)self; +#endif + md = d = PyModule_GetDict(m); (void)md;