On Mon, 2010-01-11 at 16:08 +0100, Laurent Dufrechou wrote:
> Ok perfect, correction attached as you suggested works well.
>
> __realopen__ = open
>
> def myopen(fn, *args):
> if isinstance(fn, basestring):
> if fn.endswith("version") and ".pyz" in fn:
> # Restore original open, since we're almost done
> __builtins__.__dict__["open"] = __realopen__
> # Report a fake revision number. Anything would do since it's not
> # used by the library, but it needs to be made of four numbers
> # separated by dots.
> import cStringIO
> return cStringIO.StringIO("0.0.0.0")
> return __realopen__(fn, *args)
>
> __builtins__.__dict__["open"] = myopen
>
Thanks, committed.
--
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.