I created a .exe starting from a .py file with the following command:
pyinstaller --noconfirm --onedir --windowed --icon "C:/icon05.ico" --add-data "C:/icon05.ico;." --hidden-import "tkinter" "C:/script01.py"The .exe enclosed in the generated folder works in one PC but not the other one.Running the .exe in the other PC I get the following message:
Unhandled exception in scriptFailed to execute script 'script01' due to unhandled exception: bitmap "icon05.ico" not definedTraceback (most recent call last): File "script01.py", line 387, in <module> File "tkinter\__init__.py", line 2080, in wm_iconbitmap _tkinter.TclError: bitmap "icon05.ico" not definedTried several times but without success