Skip to content

Commit

Permalink
Remove secho from pipenv.utils.shell
Browse files Browse the repository at this point in the history
  • Loading branch information
aidencullo authored and oz123 committed Jun 5, 2024
1 parent 6abb08c commit 2c04a63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipenv/utils/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 2c04a63

Please sign in to comment.