def main(): """Run the roadtt application.""" configpath = None # expand config on cmd line to realpath _before_ doing chdir if len(sys.argv) > 2: print("usage: roadtt [configdir]\n") sys.exit(1) elif len(sys.argv) == 2: configpath = os.path.realpath(os.path.dirname(sys.argv[1])) scbdo.init() app = roadtt(configpath) app.loadconfig() app.window.show() app.start() try: gtk.main() except: app.shutdown("Exception from gtk.main()") raise
def main(): scbdo.init() app = wheeltest() app.window.show() app.start() try: gtk.main() except: app.shutdown('Exception from gtk.main()') raise
def main(): """Run the announce application.""" scbdo.init() app = rr_announce() app.loadconfig() app.show() app.start() try: gtk.main() except: app.shutdown() raise
def main(): """Run the roadtt application.""" configpath = None # expand config on cmd line to realpath _before_ doing chdir if len(sys.argv) > 2: print('usage: roadtt [configdir]\n') sys.exit(1) elif len(sys.argv) == 2: configpath = os.path.realpath(os.path.dirname(sys.argv[1])) scbdo.init() app = roadtt(configpath) app.loadconfig() app.window.show() app.start() try: gtk.main() except: app.shutdown('Exception from gtk.main()') raise
def main(etype='rms'): """Run the road meet application.""" configpath = None # expand configpath on cmd line to realpath _before_ doing chdir if len(sys.argv) > 2: print('usage: roadmeet [configdir]\n') sys.exit(1) elif len(sys.argv) == 2: rdir = sys.argv[1] if not os.path.isdir(rdir): rdir = os.path.dirname(rdir) configpath = os.path.realpath(rdir) scbdo.init() app = roadmeet(configpath, etype) app.loadconfig() app.window.show() app.start() try: gtk.main() except: app.shutdown('Exception from gtk.main()') raise