python-dotenv icon indicating copy to clipboard operation
python-dotenv copied to clipboard

Question: where does the start message come from (and how to suppress it)?

Open thmsklngr opened this issue 3 years ago • 2 comments

Hi, sorry for the question, but where does the message "Loading .env environment variables" come from and can it be suppressed? I'm just wondering because I read through the code (grepping for "Loading") but there wasn't a single line.

Many thanks in advance, regards, Thomas

thmsklngr avatar Sep 21 '22 17:09 thmsklngr

Surprisingly, I had this same question today, which led me here. After researching it, it appears that this message comes not from dotenv, but from pipenv. I suspect you are using PipEnv as well. Recent releases of pipenv appear to let you suppress the message with the --quiet option.

Tim

tpow avatar Sep 21 '22 20:09 tpow

Hi Tim, you're right, I'm using pipenv here as well. Thanks for pointing me to this, I'll give it a try tomorrow. Regards, Thomas

thmsklngr avatar Sep 21 '22 21:09 thmsklngr