def main(config_paths, app_file): """init should be called first!""" parse_locale(config_paths) options, paths = parse_options() from core.settings import create_settings settings = create_settings(config_paths, options) if settings['verbose']: from lib import system system.VERBOSE = True if 'safe' in settings: from lib import formField formField.set_safe(settings['safe']) del settings['safe'] if settings['image_inspector']: _inspect(app_file, paths) return if settings['init_fonts']: _init_fonts() return else: config.check_fonts() if paths and not (paths[0] == 'recent' or \ has_ext(paths[0], INFO['extension'])): settings['droplet'] = True paths.insert(0, 'recent') if settings['droplet']: if not paths: paths = ['recent'] _droplet(app_file, paths, settings) elif len(paths) > 1 or settings['console'] or settings['interactive']: _console(paths, settings) else: _gui(app_file, paths, settings)
def on_menu_tools_update_fonts(self, event): config.check_fonts(True)