Any member of said board of public works, who shall accept a nomination or appointment for any other office during his official term, shall be deemed thereby to have resigned as a member of said board, and his said membership shall thereby be ipso facto vacated.