in bots/incident-response-slackbot/incident_response_slackbot/config.py [0:0]
def load_config(config_path: str = None) -> Config:
load_dotenv()
if config_path is None:
config_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "config.toml")
with open(config_path) as f:
cfg = toml.loads(f.read())
config = Config(**cfg)
global _CONFIG
_CONFIG = config
return _CONFIG