Skip to content

Commit

Permalink
added env variable to point to .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
James Lin authored and variable committed Sep 7, 2021
1 parent 192b813 commit e9eaf13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions environ/environ.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,7 @@ def read_env(cls, env_file=None, **overrides):
os.path.dirname(frame.f_back.f_code.co_filename),
'.env'
)
env_file = os.environ.get('ENV_FILE') or env_file
if not os.path.exists(env_file):
logger.info(
"%s doesn't exist - if you're not configuring your "
Expand Down

0 comments on commit e9eaf13

Please sign in to comment.