Pyinstaller with "--onefile" tag does not add the data for button icons #8563
Answered
by
Ernesto-Alves67
Ernesto-Alves67
asked this question in
PyInstaller
-
Recently i made a program that render markdown in a desktop aplicattion without internet. So the problem is: If i run this
the icons are correctly added to de final exe.But if i run this
the icons doesnt appear in the final exe.Why this happens? Also looking for a way to reduce de size of my program. Can you guys help me?Repo Link: https://github.com/ScherzoLambda/DocViewer_Palace/tree/main/MarkViewDesktop |
Beta Was this translation helpful? Give feedback.
Answered by
Ernesto-Alves67
May 26, 2024
Replies: 1 comment 4 replies
-
You're probably referencing the icons in your Python code using relative paths which is invalid. See docs. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I didn't understand this
__file__
aproach, i find a diferent one that works for me.Thanks for help me.