def add_dep_paths():
 paths = []
 for (importer, modname, ispkg) in pkgutil.iter_modules(kivy.deps.__path__):
  if (not ispkg):
   continue
  try:
   mod = importer.find_module(modname).load_module(modname)
  except ImportError as e:
   logging.warn('deps: Error importing dependency: {}'.format(str(e)))
   continue
  if hasattr(mod, 'dep_bins'):
   paths.extend(mod.dep_bins)
 sys.path.extend(paths)

def add_dep_paths ( ) : paths = [ ] for ( importer , modname , ispkg ) in pkgutil . iter_modules ( kivy . deps . __path__ ) : if ( not ispkg ) : continue try : mod = importer . find_module ( modname ) . load_module ( modname ) except ImportError as e : logging . warn ( 'deps: Error importing dependency: {}' . format ( str ( e ) ) ) continue if hasattr ( mod , 'dep_bins' ) : paths . extend ( mod . dep_bins ) sys . path . extend ( paths )
should be called by the hook .