I have the same problem with py2exe.
I wrote a script with Tkinter. The iconbitmap of the GUI is a ico image "foologo.ico" located in a specific directory of my computer (C:\Users\fooimage). When I create a executable file with py2exe and i use this executable in an another PC, the software doesn't work because doesn't find the image
I am looking for the best strategy to resolve this problem.
from Tkinter import *
class MainWindow(Frame):
def __init__(self):
Frame.__init__(self)
self.master.title("foo")
self.master.minsize(350, 150)
self.master.wm_iconbitmap(default='C:\\Users\\fooimage\\foologo.ico')
if __name__=="__main__":
d = MainWindow()
d.mainloop()
i convert this script in a executable file with Pyinstaller-2.01.
python pyinstaller.py --noconsole foo.py
Once i have the executable if i move the foologo.ico file in an other directory (or delete the file) the executable dosen't work. The problem is happen also when i send my executable