On 11/1/2010 5:46 PM, Zachary Uram wrote:
On Mon, Nov 1, 2010 at 7:32 PM, Christoph Gohlke<cgoh...@uci.edu> 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
Works for me with the code you provided. Please make sure to delete the
build directory before rebuilding and also update to
python-2.6.6.amd64.msi <http://www.python.org/ftp/python/2.6.6/>
--
Christoph