I'm a newbie using python, I'm trying to create a .exe from a .py file. But, when I create this .exe, It only work if the images are in the same folder as the .exe file( but on the prompt code that a I use I think that it would compact everything together ). I read some topics here about it, but I didn't find the reason for this error.
pyinstaller -y -F -w -i "C:/Users/silvag1/Desktop/final/mc.ico" --add-data "C:/Users/silvag1/Desktop/final/photo.png";"." --add-data "C:/Users/silvag1/Desktop/final/mc.ico";"." "C:/Users/silvag1/Desktop/final/final.py"
I thought that if I use the --add-data
, everything would be compacted in a single file.
I've already read Bundling data files with PyInstaller (--onefile) but I didn't understand. So, just to be clear, my purpose is create only one file( a .exe) using a .py.