On Mon, 2010-01-11 at 10:43 +0100, Laurent Dufrechou wrote:
> Hello giovanni,
>
> Please see attached a small patch about myopen function.
> (added line 36 cast to string)
> I had freezed my application but the .exe crashed while the normal python
> program did not.
> In fact the issue was that I was passing a QString to open.
> While it was working with classical python, it was not after freezing
> because QString does not have endswith method.
> So to keep same behavior as classical python program I casted fn parameter
> to string...
> (I'm not saying that giving a Qstring to open is a good idea, just the
> behavior is different :) )
>
> What do you think about it?
Hi Laurent,
That code is meant to trigger in PyOpenGL 2 only, which calls it with a
str. It doesn't have to be generic. So it is better to patch it as
follows:
if isinstance(fn, basestring) and fn.endswith("version") [...]
Can you please try it?
Thanks!
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com
--
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.