Add test to see if the config is loading at all in the right dir
This commit is contained in:
parent
9438b63c40
commit
64b1d812cd
1 changed files with 1 additions and 0 deletions
1
bot.py
1
bot.py
|
|
@ -14,6 +14,7 @@ def load_config():
|
||||||
base_path = os.path.dirname(__file__)
|
base_path = os.path.dirname(__file__)
|
||||||
config_path = os.path.join(base_path, "config.toml")
|
config_path = os.path.join(base_path, "config.toml")
|
||||||
try:
|
try:
|
||||||
|
print(f"Loading config from: {config_path}")
|
||||||
with open(config_path, "rb") as f:
|
with open(config_path, "rb") as f:
|
||||||
return tomllib.load(f)
|
return tomllib.load(f)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue