0

I was trying to create a single exe file using pyinstaller and for the purpose of my app, I needed to include some images. After some reasearch, the consensus across the web seem to be that implementation of a function as shown here: example 1 or here: example 2 should help when after creating executable you get an error saying unable to find files.

For me this approach didnt work. Eventually, on SECOND page of google results (thats how desperate I was), I found this: example 3.

To my surprise, adding image files to the derectory of the executable, worked.

Question remains, as well as my confusion, how can i do it without having to have extra files next to the executable? Or i really cant and should go down the not-single-file exec? or maybe something else?

Thank you

0 Answers0