I\'m trying to build a one-file EXE with PyInstaller which is to include an image and an icon. I cannot for the life of me get it to work with --onefile
.
If you are still trying to put files relative to your executable instead of in the temp directory, you need to copy it yourself. This is how I ended up getting it done.
https://stackoverflow.com/a/59415662/999943
You add a step in the spec file that does a filesystem copy to the DISTPATH variable.
Hope that helps.