def site_config_dirs(appname):
 if WINDOWS:
  path = os.path.normpath(_get_win_folder('CSIDL_COMMON_APPDATA'))
  pathlist = [os.path.join(path, appname)]
 elif (sys.platform == 'darwin'):
  pathlist = [os.path.join('/Library/Application Support', appname)]
 else:
  xdg_config_dirs = os.getenv('XDG_CONFIG_DIRS', '/etc/xdg')
  if xdg_config_dirs:
   pathlist = [os.path.join(expanduser(x), appname) for x in xdg_config_dirs.split(os.pathsep)]
  else:
   pathlist = []
  pathlist.append('/etc')
 return pathlist

def site_config_dirs ( appname ) : if WINDOWS : path = os . path . normpath ( _get_win_folder ( 'CSIDL_COMMON_APPDATA' ) ) pathlist = [ os . path . join ( path , appname ) ] elif ( sys . platform == 'darwin' ) : pathlist = [ os . path . join ( '/Library/Application Support' , appname ) ] else : xdg_config_dirs = os . getenv ( 'XDG_CONFIG_DIRS' , '/etc/xdg' ) if xdg_config_dirs : pathlist = [ os . path . join ( expanduser ( x ) , appname ) for x in xdg_config_dirs . split ( os . pathsep ) ] else : pathlist = [ ] pathlist . append ( '/etc' ) return pathlist
return a list of potential user-shared config dirs for this application .