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
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
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)
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')
def _default_plugin(self): workbench = InkcutWorkbench.instance() return workbench.get_plugin("inkcut.job")
def main(): faulthandler.enable() workbench = InkcutWorkbench() workbench.run()