Nicola Sturgeon is in talks with the EU now to smooth the way back in...my understanding is that if a referendum for scottish independence (with a caveat for EU membership), is held within 2 years of article 50 being invoked and subsequently accepted by the people, the EU must(?) accept the country "back" into the EU...the "country" meaning an independent Scotland.