From 076dddb2e1d36edc35df5beecb9eacdcb0541e58 Mon Sep 17 00:00:00 2001 From: Suraj Chafle Date: Wed, 13 Jun 2018 16:31:54 -0700 Subject: [PATCH] Fixed 2823 --- flask/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask/cli.py b/flask/cli.py index efc1733e..fa006c57 100644 --- a/flask/cli.py +++ b/flask/cli.py @@ -584,7 +584,7 @@ def load_dotenv(path=None): .. versionadded:: 1.0 """ if dotenv is None: - if path or os.path.exists('.env') or os.path.exists('.flaskenv'): + if path or os.path.isfile('.env') or os.path.isfile('.flaskenv'): click.secho( ' * Tip: There are .env files present.' ' Do "pip install python-dotenv" to use them.',