Console::instance()->send( "Failed to initialize the python extension modules\n" );
Console::instance()->send( tr("Failed to initialize the python extension modules\n") );
void startPython( int argc, char* argv[] ){	Py_SetProgramName( argv[0] );	Py_NoSiteFlag = 1; // No import because we need to set the search path first	Py_Initialize();	PySys_SetArgv( argc, argv );	// Modify our search-path	PyObject* searchpath = PySys_GetObject( "path" );	QStringList elements = QStringList::split( ";", Config::instance()->getString( "General", "Python Searchpath", "./scripts;.", true ) );	// Prepend our items to the searchpath	for ( int i = elements.count() - 1; i >= 0; --i )	{		PyList_Insert( searchpath, 0, PyString_FromString( elements[i].latin1() ) );	}	// Import site now	PyObject* m = PyImport_ImportModule( "site" );	Py_XDECREF( m );	// Try changing the stderr + stdout pointers	PyObject* file = PyFile_FromString( "python.log", "w" );	if ( file )	{		Py_INCREF( file );		PySys_SetObject( "stderr", file );		Py_INCREF( file );		PySys_SetObject( "stdout", file );		Py_DECREF( file );	}	try	{		init_wolfpack_globals();	}	catch ( ... )	{		Console::instance()->send( "Failed to initialize the python extension modules\n" );	}}