def collect_glib_share_files(*path):
 glib_data_dirs = get_glib_system_data_dirs()
 if (glib_data_dirs is None):
  return []
 destdir = os.path.join('share', *path[:(-1)])
 collected = []
 for data_dir in glib_data_dirs:
  p = os.path.join(data_dir, *path)
  collected += collect_system_data_files(p, destdir=destdir, include_py_files=False)
 return collected

def collect_glib_share_files ( * path ) : glib_data_dirs = get_glib_system_data_dirs ( ) if ( glib_data_dirs is None ) : return [ ] destdir = os . path . join ( 'share' , * path [ : ( - 1 ) ] ) collected = [ ] for data_dir in glib_data_dirs : p = os . path . join ( data_dir , * path ) collected += collect_system_data_files ( p , destdir = destdir , include_py_files = False ) return collected
path is relative to the system data directory .