Python in one Exe file with Images INCLUDED

The solution to this is a little tricky, but if you follow this video you will get it finally. I tried different solutions and put it into practise... so let’s see how to make one exe file containing our code for a python app, including the images into the exe file... cool! The post for this topic: My Blog with a loto of example with python, tkinter, pygame, sublime text etc. My github repositories Remember to call your images with the function resource_path # =============== copy this code ========================= def resource_path(relative_path): “““ Get absolute path to resource, works for dev and for PyInstaller “““ base_path = getattr( sys, ’_MEIPASS’, ((__file__))) retur
Back to Top