Skip to content
Myr

Merge pull request #2827 from schafle/fix-2823

Before adoption: this commit came in with the history the project adopted, so no landing records it.

[Fixed 2823] Checking if .env is file before prompting to install dotenv

authored by Hsiaoming Yang · committed by GitHub · parents 673e5af, 076dddb · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:flask/cli.py+1 added-1 removed
582 unmodified lines
583584 .. versionadded:: 1.0585 """586 if dotenv is None:587 if path or os.path.exists('.env') or os.path.exists('.flaskenv'):587 if path or os.path.isfile('.env') or os.path.isfile('.flaskenv'):588 click.secho(589 ' * Tip: There are .env files present.'590 ' Do "pip install python-dotenv" to use them.',591 fg='yellow')
307 unmodified lines