I don't exactly get the question, but if you're asking but with a lot of pictures you could just do this -
Oh! I just remembered - If they are in the same directory as the file you just have to put the name of the picture
import os from pathlib import Path d = Path(__file__).parent x = 0 picList = ['file.png', 'file.png', 'file.png', 'file.png'] for i in picList: picList[x] = os.path.join(d, 'Pic Folder', i) x += 1Hope i didn't make any mistakes on there
Oh! I just remembered - If they are in the same directory as the file you just have to put the name of the picture