def getusersitepackages():
 global USER_SITE
 user_base = getuserbase()
 if (USER_SITE is not None):
  return USER_SITE
 from sysconfig import get_path
 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

def getusersitepackages ( ) : global USER_SITE user_base = getuserbase ( ) if ( USER_SITE is not None ) : return USER_SITE from sysconfig import get_path 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
returns the user-specific site-packages directory path .