def main(): start_time = time.time() journal = Journal() utils.setup_signal_handlers(journal) end_time = time.time() logging.debug('Start took %s seconds' % (end_time - start_time)) try: logging.debug('Trying to enter the gtk main loop') Gtk.main() except KeyboardInterrupt: sys.exit()
def main(): start_time = time.time() journal = Journal() utils.setup_signal_handlers(journal) end_time = time.time() logging.debug('Start took %s seconds' % (end_time - start_time)) try: logging.debug('Trying to enter the gtk main loop') gtk.main() except KeyboardInterrupt: sys.exit()
def main(): start_time = time.time() journal = Journal() utils.setup_signal_handlers(journal) end_time = time.time() logging.debug('Start took %s seconds' % (end_time - start_time)) try: logging.debug('Trying to enter the gtk main loop') gtk.main() #logging.debug('Closing logfile') #file_logging_stream.close() except KeyboardInterrupt: # 'Interrupt' #journal.save_to_disk() sys.exit()
def main(): start_time = time.time() journal = Journal() utils.setup_signal_handlers(journal) end_time = time.time() logging.debug("Start took %s seconds" % (end_time - start_time)) try: logging.debug("Trying to enter the gtk main loop") Gtk.main() except KeyboardInterrupt: pass try: logging.info("Peak memory: {} KiB".format(filesystem.get_peak_memory_in_kb())) except Warning: pass
def main(): start_time = time.time() journal = Journal() utils.setup_signal_handlers(journal) end_time = time.time() logging.debug('Start took %s seconds' % (end_time - start_time)) try: logging.debug('Trying to enter the gtk main loop') Gtk.main() except KeyboardInterrupt: pass try: logging.info("Peak memory: {} KiB".format(filesystem.get_peak_memory_in_kb())) except Warning: pass