In the event no available public building as contemplated under this section is situated within the boundaries of any election district, the county board of elections may, not less than twenty days prior to any election, designate as the polling place for such election district any such public building situated in another election district within the same or immediately adjacent ward, or, if there are no wards, then within the same borough or township as the case may be, provided such other building is located in an election district which is immediately adjacent to the boundary of the election district for which it is to be the polling place and is directly accessible therefrom by public street or thoroughfare. Two or more polling places may be located in the same public building under this section. A polling place may be selected and designated hereunder less than twenty days prior to any election, with the approval of a court of competent jurisdiction.
25 P.S. § 2727