From 2f0cf8cf739846bfb491576eefac09918bbb389c Mon Sep 17 00:00:00 2001 From: Stephen Swaney Date: Thu, 5 May 2005 04:46:06 +0000 Subject: [PATCH] print a msg about which Python version we are using before the evil "'import site' failed" msg appears. --- source/blender/python/BPY_interface.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/blender/python/BPY_interface.c b/source/blender/python/BPY_interface.c index 261af51873e..f0741ace86c 100644 --- a/source/blender/python/BPY_interface.c +++ b/source/blender/python/BPY_interface.c @@ -147,6 +147,9 @@ void BPY_start_python( int argc, char **argv ) * rest of our init msgs. */ + /* Py_GetVersion() returns a ptr to astatic string */ + printf( "Using Python version %.3s\n", Py_GetVersion() ); + Py_Initialize( ); PySys_SetArgv( argc_copy, argv_copy );