fixed python global object constants
Fix for Python and -builtin Fix from Github issue #250
This commit is contained in:
parent
2e01533b23
commit
0ad384bb28
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue