How easy would it be for Scotland to rejoin the European Union?

Scotland's separatist parties won a majority of seats at last Thursday's election, meaning leaving the United Kingdom is once again being talked about.

How easy would it be for Scotland to rejoin the European Union?
Scotland's separatist parties won a majority of seats at last Thursday's election, meaning leaving the United Kingdom is once again being talked about.