Skip to content

Commit 0c41154

Browse files
authored
make config.yml path configurable in .env file (#1294)
1 parent 6abdea5 commit 0c41154

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

default.env

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ POSTGRES_DB_NAME=
22
POSTGRES_DB_PASSWORD=
33
POSTGRES_DB_USER=
44
DEBUG=
5+
CONFIG_YML=./config.yml

techsupport_bot/bot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class TechSupportBot(commands.Bot):
4747
FUNCTIONS_DIR (str):The list of all files in the FUNCTIONS_DIR_NAME folder
4848
"""
4949

50-
CONFIG_PATH: str = "./config.yml"
50+
CONFIG_PATH: str = os.environ.get("CONFIG_YML", "./config.yml")
5151
EXTENSIONS_DIR_NAME: str = "commands"
5252
EXTENSIONS_DIR: str = (
5353
f"{os.path.join(os.path.dirname(__file__))}/{EXTENSIONS_DIR_NAME}"

0 commit comments

Comments
 (0)