def qt5_qml_plugins_datas(directory):
 datas = []
 qmldir = qt5_qml_dir()
 qt5_qml_plugin_dir = os.path.join(qmldir, directory)
 files = []
 for (root, _dirs, _files) in os.walk(qt5_qml_plugin_dir):
  files.extend(misc.files_in_dir(root, ['qmldir', '*.qmltypes']))
 for f in files:
  relpath = os.path.relpath(f, qmldir)
  (instdir, file) = os.path.split(relpath)
  instdir = os.path.join('qml', instdir)
  logger.debug(('qt5_qml_plugins_datas installing %s in %s' % (f, instdir)))
  datas.append((f, instdir))
 return datas

def qt5_qml_plugins_datas ( directory ) : datas = [ ] qmldir = qt5_qml_dir ( ) qt5_qml_plugin_dir = os . path . join ( qmldir , directory ) files = [ ] for ( root , _dirs , _files ) in os . walk ( qt5_qml_plugin_dir ) : files . extend ( misc . files_in_dir ( root , [ 'qmldir' , '*.qmltypes' ] ) ) for f in files : relpath = os . path . relpath ( f , qmldir ) ( instdir , file ) = os . path . split ( relpath ) instdir = os . path . join ( 'qml' , instdir ) logger . debug ( ( 'qt5_qml_plugins_datas installing %s in %s' % ( f , instdir ) ) ) datas . append ( ( f , instdir ) ) return datas
return list of data files for mod .