import logging.config import os import yaml def init_log_config(): root_dir = os.path.realpath(os.path.dirname(__file__)) logging_file = root_dir + "/logging.yaml" with open(logging_file, "r") as f: logging_config = yaml.safe_load(f.read()) logging.config.dictConfig(logging_config) GESTION_SPORTS_URL = "https://toulousepadelclub.gestion-sports.com" USER = os.environ.get("USER") PASSWORD = os.environ.get("PASSWORD") CLUB_ID = os.environ.get("CLUB_ID") COURT_ID = os.environ.get("COURT_ID") SPORT_ID = os.environ.get("SPORT_ID") DATE_TIME = os.environ.get("DATE_TIME")