mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Bugfix: Not loading .env when quiet
This commit is contained in:
+6
-5
@@ -115,11 +115,12 @@ def load_dot_env(project, as_dict=False, quiet=False):
|
||||
)
|
||||
if as_dict:
|
||||
return dotenv.dotenv_values(dotenv_file)
|
||||
elif os.path.isfile(dotenv_file) and not quiet:
|
||||
click.echo(
|
||||
crayons.normal(fix_utf8("Loading .env environment variables..."), bold=True),
|
||||
err=True,
|
||||
)
|
||||
elif os.path.isfile(dotenv_file):
|
||||
if not quiet:
|
||||
click.echo(
|
||||
crayons.normal(fix_utf8("Loading .env environment variables..."), bold=True),
|
||||
err=True,
|
||||
)
|
||||
dotenv.load_dotenv(dotenv_file, override=True)
|
||||
project.s.initialize()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user