def get_filenames_from_glob_pattern(filenames):
    file_list = glob.glob(filenames)
    if (len(file_list) == 0):
        data_dir = ytcfg.get('yt', 'test_data_dir')
        pattern = os.path.join(data_dir, filenames)
        td_filenames = glob.glob(pattern)
        if (len(td_filenames) > 0):
            file_list = td_filenames
        else:
            raise YTOutputNotIdentified(filenames, {})
    return sorted(file_list)
def get_filenames_from_glob_pattern(filenames):
    file_list = glob.glob(filenames)
    if (len(file_list) == 0):
        data_dir = ytcfg.get('yt', 'test_data_dir')
        pattern = os.path.join(data_dir, filenames)
        td_filenames = glob.glob(pattern)
        if (len(td_filenames) > 0):
            file_list = td_filenames
        else:
            raise YTOutputNotIdentified(filenames, {})
    return sorted(file_list)