import glob


def all_mesa_f_files(mesa_dir):
    """
    Returns list of all MESA .f90 files & standard_run_star_extras & run_star.f
    """
    standard_files = glob.glob(mesa_dir + '/*/*/*.f90')
    standard_files = [str(x) for x in standard_files]
    other_files = [mesa_dir + '/include/standard_run_star_extras.inc',
                   mesa_dir + '/star/job/run_star.f']
    standard_files = standard_files + other_files
    return standard_files