Skip to content

Commit

Permalink
Merge pull request #4987 from HosamAlmoghraby/main
Browse files Browse the repository at this point in the history
display the directory path of the found requirements.txt file
  • Loading branch information
oz123 authored Mar 17, 2022
2 parents 242548c + 9b69959 commit 6742e0c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pipenv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down

0 comments on commit 6742e0c

Please sign in to comment.