示例#1
0
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()
示例#2
0
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()
示例#3
0
文件: journal.py 项目: ipeikon/LaBook
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()
示例#4
0
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
示例#5
0
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