[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Movies in .exe



I think what he's wanting is bundling his data files in the .exe. ie

[game files]
Game/Source.py
Game/Data/Mpeg.mpg

[run setup]
python setup.py

You get this exe with all the data files included into it:
Game.exe

The stuff above looks like its only for including source files and such.

On Sat, Jan 3, 2009 at 12:58 AM, Charlie Nolan <funnyman3595@xxxxxxxxx> wrote:
You can use py2exe's "bundle my files" parameter.  That adds the zip
file to the exe.  Browse around in the py2exe docs and examples, it'll
tell you how to do it and how to get a file pointer back out.

-FM

On Fri, Jan 2, 2009 at 4:45 PM, Noah Kantrowitz <noah@xxxxxxxxxxxxxx> wrote:
>
> On Jan 2, 2009, at 5:39 PM, Ian Mallett wrote:
>
>> Yes, I've gotten it to work that way, but I want the file to be inside the
>> .exe itself, not just in the same folder ;)
>
> http://code.google.com/p/pefile/ can access the resource fields of an
> executable. You will either need to buffer the data in a temp file or a
> stringio buffer though. You could also use the same library to add the movie
> into the executable. This does seem a good bit harder that just putting it
> in the zip though.
>
> --Noah
>



--
- pymike
"Python eggs me on."