diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-28 04:54:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-28 04:54:22 +0400 |
commit | 71dbd39891ad8109a208f389e518a446b487ef34 (patch) | |
tree | 5849df63cdddbab7fb587e9140454178ba9e1e84 /source/blender | |
parent | 6a0c8790d87877c875659dda4a4ad460193fb480 (diff) |
remove workaround for [#31555], forcing PYTHONIOENCODING was causing stdout to be lost on exit - no MEM_printmemlist_stats()
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/intern/bpy_interface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index cdecf64c93c..08eb29a2a3e 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -269,7 +269,8 @@ void BPY_python_start(int argc, const char **argv) Py_Initialize(); /* THIS IS BAD: see http://bugs.python.org/issue16129 */ -#if 1 + /* this clobbers the stdout on exit (no 'MEM_printmemlist_stats') */ +#if 0 /* until python provides a reliable way to set the env var */ PyRun_SimpleString("import sys, io\n" "sys.__backup_stdio__ = sys.__stdout__, sys.__stderr__\n" /* else we loose the FD's [#32720] */ |