code: def get_local_dist_packages_dir():
      
      import utool as ut
      if not ut.in_virtual_env():
          # Non venv case
          return get_site_packages_dir()
      else:
          candidates = []
          if ut.LINUX:
              candidates += [
                  '/usr/local/lib/python2.7/dist-packages',
              ]
          else:
              raise NotImplementedError()
          for path in candidates:
              if ut.checkpath(path):
                  return path
docs: Attempts to work around virtualenvs and find the system dist_pacakges.
      Essentially this is implmenented as a lookuptable