def site_config_dir(appname=None, appauthor=None, version=None, multipath=False):
 if (system in ['win32', 'darwin']):
  path = site_data_dir(appname, appauthor)
  if (appname and version):
   path = os.path.join(path, version)
 else:
  path = os.getenv('XDG_CONFIG_DIRS', '/etc/xdg')
  pathlist = [os.path.expanduser(x.rstrip(os.sep)) for x in path.split(os.pathsep)]
  if appname:
   if version:
    appname = os.path.join(appname, version)
   pathlist = [os.sep.join([x, appname]) for x in pathlist]
  if multipath:
   path = os.pathsep.join(pathlist)
  else:
   path = pathlist[0]
 return path

def site_config_dir ( appname = None , appauthor = None , version = None , multipath = False ) : if ( system in [ 'win32' , 'darwin' ] ) : path = site_data_dir ( appname , appauthor ) if ( appname and version ) : path = os . path . join ( path , version ) else : path = os . getenv ( 'XDG_CONFIG_DIRS' , '/etc/xdg' ) pathlist = [ os . path . expanduser ( x . rstrip ( os . sep ) ) for x in path . split ( os . pathsep ) ] if appname : if version : appname = os . path . join ( appname , version ) pathlist = [ os . sep . join ( [ x , appname ] ) for x in pathlist ] if multipath : path = os . pathsep . join ( pathlist ) else : path = pathlist [ 0 ] return path
return full path to the user-shared data dir for this application .