try: application.transmitter.reset() choice = raw_input("Please enter the script number (1 - 24) or"\ " 25 for Analyzer or 0 to exit : ") if choice == "": continue choice = int(choice) if choice == 0: break elif choice == 25: analyzer = Analyzer() analyzer.start() continue elif choice > 25 or choice < 0 or choice == 7: general_logger.warning("Invalid option %d" % choice) continue script = eval("Script%03d" % choice)(application) script.run() script.stop() except KeyboardInterrupt: if script != None: script.stop() except Exception, ex: general_logger.error("Could not execute the script. : %s" % \ (str(ex))) traceback.print_exc(file=sys.stdout) except KeyboardInterrupt: pass finally: