

def getusersitepackages():
    'Returns the user-specific site-packages directory path.\n\n    If the global variable ``USER_SITE`` is not initialized yet, this\n    function will also set it.\n    '
    global USER_SITE
    user_base = getuserbase()
    if (USER_SITE is not None):
        return USER_SITE
    from sysconfig import get_path
    import os
    if (sys.platform == 'darwin'):
        from sysconfig import get_config_var
        if get_config_var('PYTHONFRAMEWORK'):
            USER_SITE = get_path('purelib', 'osx_framework_user')
            return USER_SITE
    USER_SITE = get_path('purelib', ('%s_user' % os.name))
    return USER_SITE

dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/system/mac_site.py getusersitepackages/original