From 625ec9373dc0112d0dfb5d8ca97fd4892b39804c Mon Sep 17 00:00:00 2001 From: miki55555115 Date: Thu, 24 Aug 2023 09:56:57 +0200 Subject: fix(tags): resolve SyntaxError in dotenv reset command --- bot/resources/tags/dotenv.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/resources/tags/dotenv.md b/bot/resources/tags/dotenv.md index 14fff3458..bc6c0c766 100644 --- a/bot/resources/tags/dotenv.md +++ b/bot/resources/tags/dotenv.md @@ -12,9 +12,9 @@ TOKEN=a00418c85bff087b49f23923efe40aa5 ``` Next, in your main Python file, you need to load the environment variables from the dotenv file you just created: ```py -from dotenv import load_dotenv() +from dotenv import load_dotenv -load_dotenv(".env") +load_dotenv() ``` The variables from the file have now been loaded into your programs environment, and you can access them using `os.getenv()` anywhere in your program, like this: ```py -- cgit v1.2.3