def site_config_dirs(appname):<EOL>
if WINDOWS:<EOL><INDENT>path = os.path.normpath(_get_win_folder("<STR_LIT>"))<EOL>pathlist = [os.path.join(path, appname)]<EOL><DEDENT>elif sys.platform == '<STR_LIT>':<EOL><INDENT>pathlist = [os.path.join('<STR_LIT>', appname)]<EOL><DEDENT>else:<EOL><INDENT>xdg_config_dirs = os.getenv('<STR_LIT>', '<STR_LIT>')<EOL>if xdg_config_dirs:<EOL><INDENT>pathlist = [<EOL>os.path.join(expanduser(x), appname)<EOL>for x in xdg_config_dirs.split(os.pathsep)<EOL>]<EOL><DEDENT>else:<EOL><INDENT>pathlist = []<EOL><DEDENT>pathlist.append('<STR_LIT>')<EOL><DEDENT>return pathlist<EOL>
r"""Return a list of potential user-shared config dirs for this application.

        "appname" is the name of application.

    Typical user config directories are:
        macOS:      /Library/Application Support/<AppName>/
        Unix:       /etc or $XDG_CONFIG_DIRS[i]/<AppName>/ for each value in
                    $XDG_CONFIG_DIRS
        Win XP:     C:\Documents and Settings\All Users\Application ...
                    ...Data\<AppName>\
        Vista:      (Fail! "C:\ProgramData" is a hidden *system* directory
                    on Vista.)
        Win 7:      Hidden, but writeable on Win 7:
                    C:\ProgramData\<AppName>\