Robin Becker wrote: > OK I found the problem. First off I still see this message about > msvcr71.dll could not be extracted! > > in the debug output. > > Secondly I found that the icon I specified in the Makespec.py invocation > is actually being added to the distribution exe. I actually want to put > the icon onto the running Tk app. > > We're using this code to do that > > self.tk.call('wm','iconbitmap', self._w, '-default', 'rptlabw.ico') > > ie it's assumed that the icon has been extracted into the runtime folder. > > I guess I either need to put the icon in as a resource or figure out > some way to find the original exe and extract the icon from it.
If you specify it as icon (--icon to Makespec), it means you want it as icon of the executable. If you just want to add it as an additional data file, read the manual about that. It will be extracted to the runtime directory and you should be able to access it through _MEIPASS2 (manual should be clear about that). You can't just read it from the "current directory" because the current directory is where your exectuable is run (which could even be off a CDROM...). -- Giovanni Bajo -- http://mail.python.org/mailman/listinfo/python-list