diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-12-16 04:06:01 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-12-16 04:06:01 +0400 |
commit | dbebf4ff5370a5b99899c71d2911c8e0835acdc6 (patch) | |
tree | cba8cda45a462885afaf6f3bb26b4bad282f30b2 /source/blender/python/intern/bpy_app_handlers.c | |
parent | 0dbd9ea73f7f86e02d9aae6c65c3ce5e3c4ecd4b (diff) |
fix [#29635] Attempts to import the site module are met with a TypeError exception.
Diffstat (limited to 'source/blender/python/intern/bpy_app_handlers.c')
-rw-r--r-- | source/blender/python/intern/bpy_app_handlers.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |