Exemple #1
0
def main():
    """ Setup logging then load and run the Inkcut application. If any errors
    occur that aren't handled by the application ensure they get logged.
    
    """
    init_logging()
    log = logging.getLogger('inkcut')
    try:
        from inkcut.core.workbench import InkcutWorkbench
        workbench = InkcutWorkbench()
        workbench.run()
    except Exception as e:
        log.error(traceback.format_exc())
        raise
Exemple #2
0
def main():
    """ Setup logging then load and run the Inkcut application. If any errors
    occur that aren't handled by the application ensure they get logged.

    """
    init_logging()
    log = logging.getLogger('inkcut')
    log.info('='*40)
    log.info('Inkcut launched')
    log.info('='*40)
    try:
        from inkcut.core.workbench import InkcutWorkbench
        workbench = InkcutWorkbench()
        workbench.run()
        log.info('='*40)
        log.info('Inkcut exited cleanly')
        log.info('='*40)
    except Exception as e:
        log.error(traceback.format_exc())
        raise
Exemple #3
0
 def _default_request_approval(self):
     """ Request approval using the current job """
     from inkcut.core.workbench import InkcutWorkbench
     workbench = InkcutWorkbench.instance()
     plugin = workbench.get_plugin("inkcut.job")
     return lambda: plugin.request_approval(plugin.job)
Exemple #4
0
def close():
    from inkcut.core.workbench import InkcutWorkbench
    wb = InkcutWorkbench.instance()
    core = wb.get_plugin("enaml.workbench.core")
    core.invoke_command('enaml.workbench.ui.close_window')
Exemple #5
0
def close():
    from inkcut.core.workbench import InkcutWorkbench
    wb = InkcutWorkbench.instance()
    core = wb.get_plugin("enaml.workbench.core")
    core.invoke_command('enaml.workbench.ui.close_window')
Exemple #6
0
 def _default_plugin(self):
     workbench = InkcutWorkbench.instance()
     return workbench.get_plugin("inkcut.job")
Exemple #7
0
def main():
    faulthandler.enable()
    workbench = InkcutWorkbench()
    workbench.run()
Exemple #8
0
 def _default_request_approval(self):
     """ Request approval using the current job """
     from inkcut.core.workbench import InkcutWorkbench
     workbench = InkcutWorkbench.instance()
     plugin = workbench.get_plugin("inkcut.job")
     return lambda: plugin.request_approval(plugin.job)