From 9b699598618bab39a9b8d9348a0be1f6baa15e07 Mon Sep 17 00:00:00 2001 From: Hosam Almoghraby Date: Wed, 16 Mar 2022 22:21:29 +0100 Subject: [PATCH] show requirements.txt file path if it is found instead of Pipfile --- pipenv/core.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pipenv/core.py b/pipenv/core.py index c2041b3e..8f42cdb3 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -241,10 +241,12 @@ def ensure_pipfile(project, validate=True, skip_requirements=False, system=False ) # If there's a requirements file, but no Pipfile... if project.requirements_exists and not skip_requirements: + requirements_dir_path = os.path.dirname(project.requirements_location) click.echo( - crayons.normal( - fix_utf8("requirements.txt found, instead of Pipfile! Converting..."), - bold=True, + "{0} found in {1} instead of {2}! Converting...".format( + crayons.normal("requirements.txt", bold=True), + crayons.yellow(requirements_dir_path, bold=True), + crayons.normal("Pipfile", bold=True), ) ) # Create a Pipfile...