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.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.c')
-rw-r--r-- | source/blender/python/intern/bpy_app.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_app.c b/source/blender/python/intern/bpy_app.c index 1f99503202a..a10be098a61 100644 --- a/source/blender/python/intern/bpy_app.c +++ b/source/blender/python/intern/bpy_app.c @@ -260,6 +260,7 @@ PyObject *BPY_app_struct(void) /* prevent user from creating new instances */ BlenderAppType.tp_init= NULL; BlenderAppType.tp_new= NULL; + BlenderAppType.tp_hash= (hashfunc)_Py_HashPointer; /* without this we can't do set(sys.modules) [#29635] */ /* kindof a hack ontop of PyStructSequence */ py_struct_seq_getset_init(); |