Skip to content

Commit

Permalink
Update swigpyrun.in for Python 3.8
Browse files Browse the repository at this point in the history
In Python 3.8 some functions related to thread state were intentionally made private.

This fix (specific to FreeCAD) was suggested here:

https://bugs.python.org/issue35886
  • Loading branch information
hobbes1069 authored and wwmayer committed Oct 18, 2019
1 parent 443b948 commit 6eacb17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Base/swigpyrun.inl
Expand Up @@ -72,7 +72,7 @@ void cleanupSWIG_T(const char* TypeName)

PyObject *module, *dict;
PyInterpreterState *interp = PyThreadState_GET()->interp;
PyObject *modules = interp->modules;
PyObject *modules = PyImport_GetModuleDict();
module = PyDict_GetItemString(modules, "__builtin__");
if (module != NULL && PyModule_Check(module)) {
dict = PyModule_GetDict(module);
Expand Down

0 comments on commit 6eacb17

Please sign in to comment.