Python API

----------
Roll back to previous version; didn't mean to commit changes with Py_GetVersion
just yet!
This commit is contained in:
Ken Hughes
2007-03-21 02:46:42 +00:00
parent 3a834803ef
commit ce46f04935

View File

@@ -159,7 +159,6 @@ 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
@@ -179,8 +178,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.
*/
printf( "Compiled with Python version %s.\n", PY_VERSION );
// Py_GetVersion() returns a ptr to astatic string
printf( "Compiled with Python version %.5s.\n", Py_GetVersion() );
//Initialize the TOP-LEVEL modules
PyImport_ExtendInittab(BPy_Inittab_Modules);