fix: comments, minor fixes

This commit is contained in:
smypmsa
2025-04-29 11:56:55 +00:00
parent 465e804d39
commit a36fab7352
6 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -50,10 +50,10 @@ def load_bot_config(path: str) -> dict:
if env_file:
env_path = os.path.join(os.path.dirname(path), env_file)
if os.path.exists(env_path):
load_dotenv(env_path)
load_dotenv(env_path, override=True)
else:
# If not found relative to config, try relative to current working directory
load_dotenv(env_file)
load_dotenv(env_file, override=True)
resolve_env_vars(config)
validate_config(config)