def is_empty_macro(path):
    """Returns True if the given macro file only has empty lines and/or Attribute settings."""
    with open(path, "rb") as fp:
        for line in fp:
            # if the line is empty keep moving
            if line.strip() == b"":
                continue

            # or if it starts with one of these lines
            if line.startswith(b"Attribute VB_"):
                continue

            # otherwise it's something else, so return False
            return False

    return True