Scotland will have two Champions League teams from 2021-22 after guaranteeing a top 15 place in UEFA's coefficient ranking.
The exploits of Celtic and Rangers in this season's Europa League had Scotland in a strong position.
However, Neil Lennon's side suffered a surprise exit to Copenhagen at the last 32 stage to reduce the Premiership participants to one.
It was then truly coefficient squeaky bum time as Rangers lost both games to Bayer Leverkusen.
The total done over a five year average, with the season points divided by the number of clubs that entered European competition at the start of the season.
That meant a Rangers win in Germany would only have brought an extra 0.5 points toward the coefficient as four Scottish clubs entered.
Before the last 16 ties Scotland had a lead of 1.775 points over the Greek Superleague and 2.675 over the Swiss top flight.
Both would have had to overtake the Premiership for Scotland to fall out of the top 15.
Those nations both entered five teams into European competition and had one left, so Basel only added 0.4 with their win at Eintracht Frankfurt before the shutdown and Olympiakos' first leg draw with Wolves earned them 0.2.
But if Olympiakos had won their second leg against Wolves the gap to the Greek top flight would be down to just 0.775 points with a potential 1.2 on offer in the last eight.
Basel did progress with a 1-0 win, but Olympiakos were defeated 1-0 by Wolves.
That means Scotland cannot now be overtaken and will have two Champions League places from 2021-22.