import logging import os import yaml # Check you have a config file if not os.path.isfile("config.yml"): logging.error("Your config file is missing. Ensure you have copied config-example.yml to config.yml and updated it according to your needs.") exit() # Load config config = yaml.safe_load(open("config.yml")) logging.info("Loaded config.")