2 # -*- coding: iso8859-15 -*-
7 # module global vars and functions
9 __author__ = "Michael 'Mickey' Lauer <mickey@vanille.de>"
13 print "ERROR:", reason
17 # sanity check Qt and PyQt
23 fail( "Can't import the qt module. You need to have PyQt (http://riverbankcomputing.co.uk) 3.10 or later installed." )
29 fail( "Your PyQt (%s) is too old. Please upgrade to PyQt 3.10 or later." % PYQT_VERSION )
31 major, minor = PYQT_VERSION_STR.split( '.' )
32 if int(major) < 3 or ( int(major) == 3 and int(minor) < 10 ):
33 fail( "Your PyQt (%s) is too old. Please upgrade to PyQt 3.10 or later." % PYQT_VERSION_STR )
37 from commander.mainwindow import MainWindow
39 fail( "Can't load the GUI parts. Did you 'qmake commander.pro && make' in $OEDIR/commander/?" )
42 #------------------------------------------------------------------------#
44 #------------------------------------------------------------------------#
46 from commander.application import CommanderApplication
47 app = CommanderApplication( sys.argv )