imagesList = []
imagesList.append(('icon.ico', '..\\pathfinder\\icon.ico', 'DATA'))
import glob
allImages = glob.glob('..\\pathfinder\\*.png')
for eachImage in allImages:
    imageParts = eachImage.split('\\')
imagesList.append((imageParts[-1], eachImage, 'DATA'))
print(imagesList)
a.datas += imagesList
Build images and some configuration files like txt and xml files with pyinstaller