diff options
author | 2021-05-16 18:57:27 +0200 | |
---|---|---|
committer | 2021-05-16 18:57:27 +0200 | |
commit | 3d3a0354053484fc8bf490a0438746f3bc14fc8e (patch) | |
tree | 06655fe9d69758bd1eaad8133cd6c50aa1ecc5e7 /bot/__init__.py | |
parent | Spring cleanup (#718) (diff) | |
parent | Type hint optional parameter (diff) |
Merge pull request #623 from python-discord/pipenv-to-poetry
Pipenv to poetry
Diffstat (limited to 'bot/__init__.py')
-rw-r--r-- | bot/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bot/__init__.py b/bot/__init__.py index e5ed9d92..85ae4758 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -1,3 +1,10 @@ +try: + from dotenv import load_dotenv + print("Found .env file, loading environment variables from it.") + load_dotenv(override=True) +except ModuleNotFoundError: + pass + import asyncio import logging import logging.handlers |