Better output for where command when no Pipfile

Presently when there is no Pipfile inside a directory, running
`pip --where` gives
`Pipfile found at None. Considering this to be the project home.`.
This seems ambiguous and I've changed it to
```
$ pipenv --where
No Pipfile present at project home. Consider running `pipenv install`
first to automatically generate a Pipfile for you.
$
```
This commit is contained in:
Alok Kumar
2017-01-23 20:59:12 +05:30
parent 0c49784494
commit 3263e5f091
+3 -1
View File
@@ -64,7 +64,9 @@ def do_where(virtualenv=False, bare=True):
if not virtualenv:
location = project.pipfile_location
if not bare:
if not location:
click.echo('No Pipfile present at project home. Consider running {0} first to automatically generate a Pipfile for you.'.format(crayons.green('`pipenv install`')))
elif not bare:
click.echo('Pipfile found at {0}. Considering this to be the project home.'.format(crayons.green(location)))
else:
click.echo(location)