From what I read, if Dunfermline win the scottish cup, they go straight into the first round proper, which means they only have to play one tie to get to the group stages. If Celtic win however, Aberdeen will enter at the first round & Dunfermline will have to play in the qualifying rounds.