diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-06-14 16:53:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-06-14 16:53:47 +0400 |
commit | 8ab7fbe79563895b38bcfc50625e19fa2b38f843 (patch) | |
tree | b161a037474a34fabcbcaa4dc80600bf28bf536d /source/creator | |
parent | c3c38155ad2aca369fa956b2251ed41c749942cc (diff) |
Blender/Python API
Send the full python stack trace to the reporting api,
added BPY_exception_buffer which temporarily overrides sys.stdout and sys.stderr to get the output (uses the io module in py3 StringIO in py2 to avoid writing into a real file), pity the Py/C api has no function to do this.
fix for crash when showing menu's that have no items.
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 5617435049d..a19e5d0718c 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -710,7 +710,7 @@ int main(int argc, char **argv) //XXX // FOR TESTING ONLY a++; - BPY_run_python_script(C, argv[a], NULL); + BPY_run_python_script(C, argv[a], NULL, NULL); // use reports? #if 0 a++; if (a < argc) { @@ -719,7 +719,7 @@ int main(int argc, char **argv) main_init_screen(); scr_init = 1; } - BPY_run_python_script(C, argv[a], NULL); + BPY_run_python_script(C, argv[a], NULL, NULL); // use reports? } else printf("\nError: you must specify a Python script after '-P '.\n"); #endif |