svn merge -r 31314:31370 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender-staging.git] / source / blender / python / generic / blf_api.c
index 011a0c217c8d12726ec7fa07dc9efca6fe5c7df4..a5f5f8815c7744781ea1938f624f2ac49f5e1458 100644 (file)
@@ -394,7 +394,7 @@ PyObject *BLF_Init(void)
        PyObject *submodule;
 
        submodule = PyModule_Create(&BLF_module_def);
-       PyDict_SetItemString(PySys_GetObject("modules"), BLF_module_def.m_name, submodule);
+       PyDict_SetItemString(PyImport_GetModuleDict(), BLF_module_def.m_name, submodule);
 
        PyModule_AddIntConstant(submodule, "ROTATION", BLF_ROTATION);
        PyModule_AddIntConstant(submodule, "CLIPPING", BLF_CLIPPING);