Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_tkinter.TclError: bitmap not defined when using pyinstaller #132

Open
aben20807 opened this issue Aug 15, 2022 · 0 comments
Open

_tkinter.TclError: bitmap not defined when using pyinstaller #132

aben20807 opened this issue Aug 15, 2022 · 0 comments

Comments

@aben20807
Copy link
Owner

aben20807 commented Aug 15, 2022

May not good

https://blog.csdn.net/gdkyxy2013/article/details/103755124

pack .ico to .py

Failed

https://github.com/aben20807/ezexif/blob/master/ezexif/ezexif.py#L127

use app_path and --add-data of pyinstaller

app_path:

if getattr(sys, "frozen", False):
  app_path = os.path.dirname(sys.executable)
elif __file__:
  app_path = os.path.dirname(__file__)

--add-data: --add-data "icon.ico;."

Demo: https://github.com/aben20807/ezexif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant