From 0ad384bb288bcd25347d26c71c4ca5b3c4e0aee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Tomulik?= Date: Sat, 25 Oct 2014 23:11:37 +0200 Subject: [PATCH] fixed python global object constants Fix for Python and -builtin Fix from Github issue #250 --- Lib/python/pyinit.swg | 6 ++++++ 1 file changed, 6 insertions(+) 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;