def get_data_files(top):
    """Get data files"""

    data_files = []
    ntrim = len(here + os.path.sep)

    for (d, _, filenames) in os.walk(top):
        data_files.append((
            d[ntrim:],
            [os.path.join(d, f) for f in filenames]
        ))
    return data_files
def get_data_files ( top ) : data_files = [ ] ntrim = len ( here + os . path . sep ) for ( d , _ , filenames ) in os . walk ( top ) : data_files . append ( ( d [ ntrim : ] , [ os . path . join ( d , f ) for f in filenames ] ) ) return data_files
Get data files