def find_data_files():
    '\n    Find data_files.\n    '
    if (not os.path.exists(pjoin('jupyterlab', 'build'))):
        return []
    files = []
    static_files = os.listdir(pjoin('jupyterlab', 'build'))
    files.append(('share/jupyter/lab/static', [('jupyterlab/build/%s' % f) for f in static_files]))
    for (dir, subdirs, fnames) in os.walk(pjoin('jupyterlab', 'schemas')):
        dir = dir.replace(os.sep, '/')
        schema_files = []
        for fname in fnames:
            schema_files.append(('%s/%s' % (dir, fname)))
        slice_len = len('jupyterlab/')
        files.append((('share/jupyter/lab/%s' % dir[slice_len:]), schema_files))
    for (dir, subdirs, fnames) in os.walk(pjoin('jupyterlab', 'themes')):
        dir = dir.replace(os.sep, '/')
        themes_files = []
        for fname in fnames:
            themes_files.append(('%s/%s' % (dir, fname)))
        slice_len = len('jupyterlab/')
        files.append((('share/jupyter/lab/%s' % dir[slice_len:]), themes_files))
    return files
Find data_files.
def find_data_files():
    '\n    \n    '
    if (not os.path.exists(pjoin('jupyterlab', 'build'))):
        return []
    files = []
    static_files = os.listdir(pjoin('jupyterlab', 'build'))
    files.append(('share/jupyter/lab/static', [('jupyterlab/build/%s' % f) for f in static_files]))
    for (dir, subdirs, fnames) in os.walk(pjoin('jupyterlab', 'schemas')):
        dir = dir.replace(os.sep, '/')
        schema_files = []
        for fname in fnames:
            schema_files.append(('%s/%s' % (dir, fname)))
        slice_len = len('jupyterlab/')
        files.append((('share/jupyter/lab/%s' % dir[slice_len:]), schema_files))
    for (dir, subdirs, fnames) in os.walk(pjoin('jupyterlab', 'themes')):
        dir = dir.replace(os.sep, '/')
        themes_files = []
        for fname in fnames:
            themes_files.append(('%s/%s' % (dir, fname)))
        slice_len = len('jupyterlab/')
        files.append((('share/jupyter/lab/%s' % dir[slice_len:]), themes_files))
    return files