Merge pull request #62 from NebulousLabs/dotenv-override

Add override to load_dotenv call
This commit is contained in:
Marcin Jachymiak 2020-03-06 14:11:29 -05:00 committed by GitHub
commit 78c04918df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ api_endpoint, port, portal_name, bot_token, password = None, None, None, None, N
# Load dotenv file if possible.
if len(sys.argv) > 1:
env_path = Path(sys.argv[1])
load_dotenv(dotenv_path=env_path)
load_dotenv(dotenv_path=env_path, override=True)
bot_token = os.environ["DISCORD_BOT_TOKEN"]
portal_name = os.getenv("PORTAL_NAME")