Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Hughes <khughes@pacific.edu>2007-03-21 05:23:28 +0300
committerKen Hughes <khughes@pacific.edu>2007-03-21 05:23:28 +0300
commit3a834803ef5d74d68d5aa37b9a23f205a473d27f (patch)
tree10821ce011ca877281ef494dacdcaefde886990b /source/blender/python/BPY_interface.c
parenta6db9c59494c1ecf00ba165fff3d9007f0b0fe32 (diff)
Python API
---------- Support for new bpy.libraries module, which is being proposed to replace the Blender.Library module.
Diffstat (limited to 'source/blender/python/BPY_interface.c')
-rw-r--r--source/blender/python/BPY_interface.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/python/BPY_interface.c b/source/blender/python/BPY_interface.c
index c8173866f97..3b54033d897 100644
--- a/source/blender/python/BPY_interface.c
+++ b/source/blender/python/BPY_interface.c
@@ -159,6 +159,7 @@ void BPY_start_python( int argc, char **argv )
static int argc_copy = 0;
static char **argv_copy = NULL;
int first_time = argc;
+ char *str, version[16];
/* we keep a copy of the values of argc and argv so that the game engine
* can call BPY_start_python(0, NULL) whenever a game ends, without having
@@ -178,8 +179,8 @@ void BPY_start_python( int argc, char **argv )
* print an error if not found. See init_syspath() for the
* rest of our init msgs.
*/
- // Py_GetVersion() returns a ptr to astatic string
- printf( "Compiled with Python version %.5s.\n", Py_GetVersion() );
+
+ printf( "Compiled with Python version %s.\n", PY_VERSION );
//Initialize the TOP-LEVEL modules
PyImport_ExtendInittab(BPy_Inittab_Modules);