def dist_in_usersite(dist):
 if user_site:
  return normalize_path(dist_location(dist)).startswith(normalize_path(user_site))
 else:
  return False

def dist_in_usersite ( dist ) : if user_site : return normalize_path ( dist_location ( dist ) ) . startswith ( normalize_path ( user_site ) ) else : return False
return true if given distribution is installed in user site .