Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-10-30 02:59:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-10-30 02:59:39 +0400
commitced06081b8ef2c9cefd0ed61461c54d5393ca23d (patch)
treecf3b5fd656c58bce003bc9958d3f49621f47dc2a /intern/audaspace
parent719c941c58f8b4acaced83c7521a6746fdd0841f (diff)
use PyImport_ExtendInittab for py module initialization rather then adding to sys.modules directly, no functional change.
Diffstat (limited to 'intern/audaspace')
-rw-r--r--intern/audaspace/intern/AUD_C-API.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/audaspace/intern/AUD_C-API.cpp b/intern/audaspace/intern/AUD_C-API.cpp
index d22d9e6c434..38732fc13e1 100644
--- a/intern/audaspace/intern/AUD_C-API.cpp
+++ b/intern/audaspace/intern/AUD_C-API.cpp
@@ -197,7 +197,7 @@ PyObject* AUD_initPython()
{
PyObject* module = PyInit_aud();
PyModule_AddObject(module, "device", (PyObject *)PyCFunction_New(meth_getcdevice, NULL));
- PyDict_SetItemString(PySys_GetObject("modules"), "aud", module);
+ PyDict_SetItemString(PyImport_GetModuleDict(), "aud", module);
if(AUD_device)
{
g_device = (Device*)Device_empty();