Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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))
def __init__(self):
super(Application, self).__init__(
application_id='org.gtimelog',
flags=Gio.ApplicationFlags.HANDLES_COMMAND_LINE,
)
GLib.set_application_name(_("Time Log"))
GLib.set_prgname('gtimelog')
self.add_main_option_entries([
make_option("--version", description=_("Show version number and exit")),
make_option("--debug", description=_("Show debug information on the console")),
])