def user_config_dir(appname, roaming=True):
    if WINDOWS:
        path = user_data_dir(appname, roaming=roaming)
    elif sys.platform == "darwin":
        path = user_data_dir(appname)
    else:
        path = os.getenv('XDG_CONFIG_HOME', os.path.expanduser("~/.config"))
        path = os.path.join(path, appname)

    return path


# for the discussion regarding site_config_dirs locations
# see <https://github.com/pypa/pip/issues/1733>
Return full path to the user-specific config dir for this application.
dataset/ETHPy150Open anzev/hedwig/build/pip/pip/utils/appdirs.py/user_config_dir