From 121f13fef7e6e2652555b0fda59da282da37a2ff Mon Sep 17 00:00:00 2001 From: Ken Hughes Date: Sat, 8 Jul 2006 20:40:41 +0000 Subject: [PATCH] ===Python API=== Response to bug #4398: print separate messages on start-up to show (a) the built-in Python version and (b) whether a Python installation was found. --- source/blender/python/BPY_interface.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/blender/python/BPY_interface.c b/source/blender/python/BPY_interface.c index 8f959d660df..fcf00a895e2 100644 --- a/source/blender/python/BPY_interface.c +++ b/source/blender/python/BPY_interface.c @@ -147,7 +147,7 @@ void BPY_start_python( int argc, char **argv ) * rest of our init msgs. */ // Py_GetVersion() returns a ptr to astatic string - printf( "Looking for installed Python version %.3s\n", Py_GetVersion() ); + printf( "Compiled with Python version %.3s.\n", Py_GetVersion() ); //Initialize the TOP-LEVEL modules PyImport_ExtendInittab(BPy_Inittab_Modules); @@ -264,10 +264,11 @@ void init_syspath( int first_time ) python install found. */ + printf("Checking for installed Python... "); /* appears after msg "Compiled with Python 2.x" */ mod = PyImport_ImportModule( "site" ); /* new ref */ if( mod ) { - printf("Got it!\n"); /* appears after msg Looking for Python... */ + printf("got it!\n"); Py_DECREF( mod ); } else { /* import 'site' failed */ PyErr_Clear( );