From dbebf4ff5370a5b99899c71d2911c8e0835acdc6 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 16 Dec 2011 00:06:01 +0000 Subject: fix [#29635] Attempts to import the site module are met with a TypeError exception. --- source/blender/python/intern/bpy_app_handlers.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/python/intern/bpy_app_handlers.c') diff --git a/source/blender/python/intern/bpy_app_handlers.c b/source/blender/python/intern/bpy_app_handlers.c index edab92b295b..dd512791e85 100644 --- a/source/blender/python/intern/bpy_app_handlers.c +++ b/source/blender/python/intern/bpy_app_handlers.c @@ -210,6 +210,7 @@ PyObject *BPY_app_handlers_struct(void) /* prevent user from creating new instances */ BlenderAppCbType.tp_init= NULL; BlenderAppCbType.tp_new= NULL; + BlenderAppCbType.tp_hash= (hashfunc)_Py_HashPointer; /* without this we can't do set(sys.modules) [#29635] */ /* assign the C callbacks */ if (ret) { -- cgit v1.2.3