def __call__(self, argv):
        manager = self.manager
        section = self.get_config_section()
        parser = self.get_parser()
        args = parser.parse_args(args=argv)

        template_dir = args.template
        if not template_dir:
            # Try getting the template set in config.
            template_dir = manager.config.get(section, 'appengine_stub')

        if not template_dir:
            # Use default template.
            curr_dir = os.path.dirname(os.path.realpath(__file__))
            template_dir = os.path.join(curr_dir, 'stubs', 'appengine')

        template_dir = os.path.abspath(template_dir)
        if not os.path.exists(template_dir):
            self.error(template_dir % 'Template directory not found: %r.')

        for app_dir in args.app_dir:
            app_dir = os.path.abspath(app_dir)
            self.create_app(app_dir, template_dir)
dataset/ETHPy150Open moraes/tipfy/manage/__init__.py/CreateAppAction.__call__/swapped operands of `%`