diff --git a/bin/redbot_cli b/bin/redbot_cli index 48b84664..e66106e3 100755 --- a/bin/redbot_cli +++ b/bin/redbot_cli @@ -9,6 +9,7 @@ __author__ = "Jerome Renard " from configparser import ConfigParser from argparse import ArgumentParser import sys +import os import thor @@ -45,7 +46,7 @@ def main() -> None: args = parser.parse_args() config_parser = ConfigParser() - config_parser.read_dict({"redbot": {"lang": "en", "charset": "utf-8"}}) + config_parser.read(os.environ.get("REDBOT_CONFIG", "config.txt")) config = config_parser["redbot"] resource = HttpResource(config, descend=args.descend)