def METHOD_NAME() -> Path:
    data_directory = os.path.expandvars("$XDG_DATA_HOME")
    if data_directory == "$XDG_DATA_HOME":
        # if variable wasn't set
        data_directory = os.path.expanduser("~/.local/share")
    qtile_directory = Path(data_directory) / "qtile"
    if not qtile_directory.exists():
        qtile_directory.mkdir(parents=True)
    return qtile_directory / "qtile.log"