Skip to content

Allow more control over .env loading message #4027

@mjpieters

Description

@mjpieters

I'm running automated pipenv run ... commands, and each and every time there is a Loading .env environment variables message.

Please, let me disable that message. pipenv run doesn't take switches nor is there a PIPENV_BARE environment variable, and so output of the message is unconditional.

Either support --bare for pipenv run, or better still, let me control pipenv output with an environment variable like PIPENV_BARE or PIPENV_QUIET.

What I don't want:

  • Having to disable .env loading with PIPENV_DONT_LOAD_ENV
  • Having to redirect stderr to /dev/null; the commands I run with pipenv run have to be able to use stderr too, and if the .env is corrupted or PIPENV_DOTENV_LOCATION is set I don't want error messages about those issues to be missed.

Metadata

Metadata

Assignees

Labels

PR: mergedThe PR related to this issue has been merged.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions