# Files Generated by MTut Script

This section discusses how the MTut Script saves files to disk. After running a multi-tutorial script, named ‘my_mtut_script.pyml’, as follows:-

    $ popy_run my_mtut_script.pyml

the output folder will contain three new scripts:-

    my_mtut_script.pyml_output/
        <mtut_name>_mgen.pyml
        <mtut_name>_mfit.pyml
        <mtut_name>_mcomp.pyml

Note the multi-tutorial output folder name my_mtut_script.pyml_output is derived from the multi-tutorial script filename. However the generated script file names are based on the following entry:-

    DESCRIPTION: {name: <mtut_name>}

This naming convention for output folders and generated scripts is followed by all Script File Formats in PoPy.

It is worth naming your scripts and description names with this in mind, i.e., short names without spaces are recommended.

For a MTut Script the three subscripts are usually run automatically, see Table 74 for links to the files generated by each of the subscripts, in their own sub folders.

Script | Outputs
--- | ---
<mtut_name>_mgen.pyml | mgen outputs
<mtut_name>_mfit.pyml | mfit outputs
<mtut_name>_mcomp.pyml | mcomp outputs

These three scripts are run in order. When all three scripts are run then you end up with a file structure like:-

    my_mtut_script.pyml_output/
        <mtut_name>_mgen.pyml_output/
        <mtut_name>_mfit.pyml_output/
        <mtut_name>_mcomp.pyml_output/