def main():
mark_time("in main()")
root_logger = logging.getLogger()
root_logger.addHandler(logging.StreamHandler())
if '--debug' in sys.argv:
root_logger.setLevel(logging.DEBUG)
else:
root_logger.setLevel(logging.INFO)
# Tell GTK+ to use out translations
locale.bindtextdomain('gtimelog', LOCALE_DIR)
locale.textdomain('gtimelog')
# Tell Python's gettext.gettext() to use our translations
gettext.bindtextdomain('gtimelog', LOCALE_DIR)
gettext.textdomain('gtimelog')
# Make ^C terminate the process
signal.signal(signal.SIGINT, signal.SIG_DFL)
# Run the app
app = Application()
mark_time("app created")
sys.exit(app.run(sys.argv))
评论列表
文章目录