Beispiel #1
0
def main(argv=None):
    # Parse options
    if argv is None:
        argv = sys.argv
    if len(argv) > 1:
        opts, args = getopt.getopt(argv[1:], "d")
        if "-d" in [o for o,v in opts]:
            Logger.set_debug_mode()
    Logger.clear()

    app = Application(UserInterface)
    Logger.log("app.start()")
    app.start()
    Logger.log("app.start() finished")