Merge branch 'master' into blender2.8
[blender.git] / source / blender / python / intern / gpu.c
index eb28e4d4e1c885bb0285bd0bedc24b70e849ccf5..71143585657b1e3ef1b750014e189f132e086343 100644 (file)
@@ -85,7 +85,7 @@ PyObject *GPU_initPython(void)
 {
        PyObject *module;
        PyObject *submodule;
-       PyObject *sys_modules = PyThreadState_GET()->interp->modules;
+       PyObject *sys_modules = PyImport_GetModuleDict();
 
        module = PyInit_gpu();