def get_system_config_dirs(app_name, app_author, force_xdg=True):
if WIN:<EOL><INDENT>folder = os.environ.get('<STR_LIT>')<EOL>return [os.path.join(folder, app_author, app_name)]<EOL><DEDENT>if MAC and not force_xdg:<EOL><INDENT>return [os.path.join('<STR_LIT>', app_name)]<EOL><DEDENT>dirs = os.environ.get('<STR_LIT>', '<STR_LIT>')<EOL>paths = [os.path.expanduser(x) for x in dirs.split(os.pathsep)]<EOL>return [os.path.join(d, _pathify(app_name)) for d in paths]<EOL>
r"""Returns a list of system-wide config folders for the application.

    For an example application called ``"My App"`` by ``"Acme"``,
    something like the following folders could be returned:

    macOS (non-XDG):
      ``['/Library/Application Support/My App']``
    Mac OS X (XDG):
      ``['/etc/xdg/my-app']``
    Unix:
      ``['/etc/xdg/my-app']``
    Windows 7:
      ``['C:\ProgramData\Acme\My App']``

    :param app_name: the application name. This should be properly capitalized
                     and can contain whitespace.
    :param app_author: The app author's name (or company). This should be
                       properly capitalized and can contain whitespace.
    :param force_xdg: if this is set to `True`, then on macOS the XDG Base
                      Directory Specification will be followed. Has no effect
                      on non-macOS systems.