Since the error occurred during the build I was thinking that it had to do with
bundling data files. However, when I changed the way I accessed the location
of the data file from sys._MEIPASS to sys.prefix, the error went away.
The code I'm using to access the data file is:
datafile = "aom2_impulse.ico"
if not hasattr(sys, "frozen"): # not packed
datafile = os.path.join(os.path.dirname(__file__), datafile)
else:
datafile = os.path.join(sys.prefix, datafile)
Is there any chance that in the future Pyinstaller might handle the Tkinter
title bar icon for Windows using the same file used to add the icon to the
executable? Of course it is trivial to do in the program once you have access
to the icon file:
root = tk.Tk()
root.iconbitmap(default=datafile)
On Jun 4, 2012, at 2:25 PM, Martin Zibricky wrote:
> Lynn Oliver píše v Ne 03. 06. 2012 v 10:39 -0700:
>>
>>
>> Any suggestions?
>
> Is your issue in pyinstaller not bundling data files or in the way how
> you access data files in your app?
>
> --
> You received this message because you are subscribed to the Google Groups
> "PyInstaller" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/pyinstaller?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.