def _append_package_paths(manifest_, paths, pkg_dir):
 exports = manifest_.get_export('python', 'path')
 if exports:
  for export in exports:
   if (':' in export):
    export = export.split(':')
   else:
    export = [export]
   for e in export:
    paths.append(e.replace('${prefix}', pkg_dir))
 else:
  dirs = [os.path.join(pkg_dir, d) for d in ['src', 'lib']]
  paths.extend([d for d in dirs if os.path.isdir(d)])

def _append_package_paths ( manifest_ , paths , pkg_dir ) : exports = manifest_ . get_export ( 'python' , 'path' ) if exports : for export in exports : if ( ':' in export ) : export = export . split ( ':' ) else : export = [ export ] for e in export : paths . append ( e . replace ( '${prefix}' , pkg_dir ) ) else : dirs = [ os . path . join ( pkg_dir , d ) for d in [ 'src' , 'lib' ] ] paths . extend ( [ d for d in dirs if os . path . isdir ( d ) ] )
added paths for package to paths .