def __init__(self, args=sys.argv[1:]): MozProfileCLI.__init__(self, args=args) # choose appropriate runner and profile classes app = self.options.app try: self.runner_class = runners[app] self.profile_class = get_app_context(app).profile_class except KeyError: self.parser.error('Application "%s" unknown (should be one of "%s")' % (app, ', '.join(runners.keys())))
def __init__(self, args=sys.argv[1:]): MozProfileCLI.__init__(self, args=args) # choose appropriate runner and profile classes app = self.options.app try: self.runner_class = runners[app] self.profile_class = get_app_context(app).profile_class except KeyError: self.parser.error( 'Application "%s" unknown (should be one of "%s")' % (app, ', '.join(runners.keys())))