For PPL there is no specific ground school attendance required, all is self study.
You will always benefit from an instructors input but it will cost you.
The exams as far as I am aware must be sat in a supervised environment so that would mean the flying school.
Nick