def site_data_dir(appname, appauthor=None, version=None):
    if sys.platform.startswith("win"):
        if appauthor is None:
            raise AppDirsError("must specify 'appauthor' on Windows")
        path = os.path.join(_get_win_folder("CSIDL_COMMON_APPDATA"),
                            appauthor, appname)
    elif sys.platform == 'darwin':
        path = os.path.join(
            os.path.expanduser('/Library/Application Support'),
            appname)
    else:
        # XDG default for $XDG_CONFIG_DIRS[0]. Perhaps should actually
        # *use* that envvar, if defined.
        path = "/etc/xdg/" + appname.lower()
    if version:
        path = os.path.join(path, version)
    return path
Return full path to the user-shared data dir for this application.
dataset/ETHPy150Open Anaconda-Platform/chalmers/chalmers/utils/appdirs.py/site_data_dir