Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into fix/load-dotenv-return-code
  • Loading branch information
theskumar authored Jun 5, 2022
commit b67bca849aff85ef028c26a4e295397983cdf201
7 changes: 5 additions & 2 deletions src/dotenv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,12 @@ def load_dotenv(
override: Whether to override the system environment variables with the variables
from the `.env` file.
encoding: Encoding to be used to read the file.

Comment thread
theskumar marked this conversation as resolved.
Outdated
Returns:
Bool: True if atleast one environment variable is set elese False

If neither `dotenv_path` nor `stream` are provided, `find_dotenv()` is used
to find the .env file.
If both `dotenv_path` and `stream` are `None`, `find_dotenv()` is used to find the
.env file.
"""
if dotenv_path is None and stream is None:
dotenv_path = find_dotenv()
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.