def collect_glib_etc_files(*path):
 glib_config_dirs = get_glib_sysconf_dirs()
 if (glib_config_dirs is None):
  return []
 destdir = os.path.join('etc', *path[:(-1)])
 collected = []
 for config_dir in glib_config_dirs:
  p = os.path.join(config_dir, *path)
  collected += collect_system_data_files(p, destdir=destdir, include_py_files=False)
 return collected

def collect_glib_etc_files ( * path ) : glib_config_dirs = get_glib_sysconf_dirs ( ) if ( glib_config_dirs is None ) : return [ ] destdir = os . path . join ( 'etc' , * path [ : ( - 1 ) ] ) collected = [ ] for config_dir in glib_config_dirs : p = os . path . join ( config_dir , * path ) collected += collect_system_data_files ( p , destdir = destdir , include_py_files = False ) return collected
path is relative to the system config directory .