From 1d226d2d5c5f51ecf9b115c554a6d2bf81328a71 Mon Sep 17 00:00:00 2001 From: Aiden Cullo Date: Tue, 4 Jun 2024 18:21:42 -0400 Subject: [PATCH] Remove secho from pipenv.utils.shell --- pipenv/utils/shell.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pipenv/utils/shell.py b/pipenv/utils/shell.py index 811ff7f29f..3c2bae5f81 100644 --- a/pipenv/utils/shell.py +++ b/pipenv/utils/shell.py @@ -11,6 +11,7 @@ from functools import lru_cache from pathlib import Path +from pipenv.utils import err from pipenv.utils.fileutils import normalize_drive, normalize_path from pipenv.vendor import click from pipenv.vendor.pythonfinder.utils import ensure_path, parse_python_version @@ -410,7 +411,7 @@ def project_python(project, system=False): interpreters = [i for i in interpreters if i] # filter out not found interpreters python = interpreters[0] if interpreters else None if not python: - click.secho("The Python interpreter can't be found.", fg="red", err=True) + err.print("The Python interpreter can't be found.", style="red") sys.exit(1) return Path(python).as_posix()