clConsole.ProgressFail();
if( !silent ) clConsole.ProgressFail();
void startPython( int argc, char* argv[] ){	clConsole.PrepareProgress( "Starting Python interpreter" );		Py_SetProgramName( argv[ 0 ] );	Py_SetPythonHome( "python" ); // Subdirectory "python" is the base path	Py_NoSiteFlag = 1;	Py_Initialize(); // Initialize python finally	PySys_SetArgv( argc, argv );	// Modify our search-path	PyObject *sysModule = PyImport_ImportModule( "sys" );	PyObject *searchPath = PyObject_GetAttrString( sysModule, "path" );		// Sorry but we can't use our DefManager for this	QDomDocument Document( "python" );	QFile File( "python.xml" );    if ( !File.open( IO_ReadOnly ) )	{		clConsole.ProgressSkip();			clConsole.send( "Unable to open python.xml!\n" );		return;	}    if ( !Document.setContent( &File ) ) {        File.close();        		clConsole.ProgressSkip();		clConsole.send( "Unable to parse python.xml" );		return;	}	File.close();	QDomElement pythonSettings = Document.documentElement();	QDomNodeList nodeList = pythonSettings.childNodes();	for( UI08 i = 0; i < nodeList.count(); i++ )	{		if( !nodeList.item( i ).isElement() )			continue;		QDomElement element = nodeList.item( i ).toElement();				if( element.nodeName() != "searchpath" )			continue;		PyList_Append( searchPath, PyString_FromString( element.text().ascii() ) );	}		// Import site now	PyObject *m = PyImport_ImportModule("site");	if( m == NULL )	{		clConsole.ProgressFail();		if( PyErr_Occurred() )			PyErr_Print();		return;	}	else	{		Py_XDECREF( m );    }		try	{				init_wolfpack_globals(); // Init wolfpack extensions	}	catch( ... )	{		clConsole.ProgressFail();		clConsole.send( "Failed to initialize the python extension modules\n" );		return;	}	clConsole.ProgressDone();}