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