I'm just curious before trying it on my own code:
In the first *try*, you opened the file as *"wb"* and then, called f.write(
data*)*.
What does it mean? Why not *"r"* and *f.read()*?
Thanks!
Em segunda-feira, 25 de fevereiro de 2013 04h33min16s UTC-3, Radomir
Dopieralski escreveu:
>
> On Mon, Feb 25, 2013 at 3:33 AM, Vinícius Naves Castanheira
> > wrote:
> > In order to make the game more presentable to the user, I have this idea
> on
> > putting all the resources on a .tar file (and further compiling
> everything
> > in a single .exe)
> [...]
>
> > Anyone has tried this before?
>
> Yes, although it's much easier using a zip file.
> I described my method at
> http://sheep.art.pl/Your%20Python%20Application%20as%20a%20Single%20File
>
> --
> Radomir Dopieralski, http://sheep.art.pl
>