from pathlib import Path
import stat


def make_file_executable(file_path: Path) -> Path:
    """Makes a file executable."""
    file_path.chmod(file_path.stat().st_mode | stat.S_IEXEC)
    return file_path