I coded a python application with a GUI in Tkinter
with pictures. Now that I have finished, I am trying to convert it to a .exe
with py2exe
. All my pictures are in the same folder as my python file and setup file, but when I try to convert my python file via the Command Prompt
, I get error messages saying that my .ico
file is not defined and that it can not copy it. I think the problem is due to my setup.py
file. How do I allow my images to be copied into the new .exe
executable file without getting errors I have never used py2exe
before.
Setup file:
from distutils.core import setup
import py2exe
setup(console=['Gui.py'])
Error:
How do I fix this?