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

Re: [pygame] Please help!



On Mon, Nov 1, 2010 at 7:32 PM, Christoph Gohlke <cgohlke@xxxxxxx> wrote:
>
>
>
> In build.py, instead of
>
> shutil.copyfile('freesansbold.ttf', 'dist/freesansbold.ttf')
>
> you could do
>
> import zipfile
> font = os.path.join(os.path.dirname(sys.executable),
> Â Â'lib', 'site-packages', 'pygame', 'freesansbold.ttf')
> zip = zipfile.ZipFile('dist/library.zip', 'a')
> zip.write(font, 'pygame/freesansbold.ttf')
> zip.close()

I made these changes and verified that the font file is included in
dist\library.zip however when I run the .EXE it results in the exact
same runtime error :( Man this is a tough one!

Zach