2 #undef SUIT_ENABLE_PYTHON
4 //#include "SUITconfig.h"
7 #include <qapplication.h>
9 #include "SUIT_Session.h"
10 #include "SUITApp_Application.h"
12 #ifdef SUIT_ENABLE_PYTHON
16 #include <qstringlist.h>
18 int main( int args, char* argv[] )
20 #ifdef SUIT_ENABLE_PYTHON
22 PySys_SetArgv( args, argv );
26 bool noExceptHandling = false;
27 for ( int i = 1; i < args && !noExceptHandling; i++ )
29 if ( !strcmp( argv[i], "/noexcepthandling" ) )
30 noExceptHandling = true;
32 argList.append( QString( argv[i] ) );
35 SUITApp_Application app( args, argv );
38 if ( !argList.isEmpty() )
40 SUIT_Session* aSession = new SUIT_Session();
41 if ( aSession->startApplication( argList.first() ) )
43 if ( !noExceptHandling )
44 app.setHandler( aSession->handler() );