def _print_split_model(self, path, apps_models):
for app, models in apps_models:<EOL><INDENT>for model in models:<EOL><INDENT>model_name = model().title<EOL>if self._has_extension(path):<EOL><INDENT>model_path = re.sub(r'<STR_LIT>', r'<STR_LIT>' % (app, model_name), path)<EOL><DEDENT>else:<EOL><INDENT>model_path = '<STR_LIT>' % (path, app, model_name)<EOL><DEDENT>self._print_single_file(model_path, [(app, [model])])<EOL><DEDENT><DEDENT>
Print each model in apps_models into its own file.