import logging.config from pathlib import Path current_path = Path(__file__).parent logging.config.fileConfig(str(current_path / "logging.conf"))