code: def do_where(virtualenv=False, bare=True):
      
      if not virtualenv:
          if not project.pipfile_exists:
              click.echo(
                  "No Pipfile present at project home. Consider running "
                  "{0} first to automatically generate a Pipfile for you."
                  "".format(crayons.green("`pipenv install`")),
                  err=True,
              )
              return
          location = project.pipfile_location
          # Shorten the virtual display of the path to the virtualenv.
          if not bare:
              location = shorten_path(location)
              click.echo(
                  "Pipfile found at {0}.\n  Considering this to be the project home."
                  "".format(crayons.green(location)),
                  err=True,
              )
          else:
              click.echo(project.project_directory)
      else:
          location = project.virtualenv_location
          if not bare:
              click.echo(
                  "Virtualenv location: {0}".format(crayons.green(location)), err=True
              )
          else:
              click.echo(location)
docs: Executes the where functionality.