fixed python global object constants

Fix for Python and -builtin
Fix from Github issue #250
This commit is contained in:
Paweł Tomulik 2014-10-25 23:11:37 +02:00 committed by William S Fulton
commit 0ad384bb28

View file

@ -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;