On 11/1/2010 4:10 PM, Zachary Uram wrote:
On Mon, Nov 1, 2010 at 6:27 PM, Christoph Gohlke<cgohlke@xxxxxxx> wrote:Indeed, the solution to this and Zach's problem is to include the file "freesansbold.ttf" in the pygame folder in the dist\library.zip file. For the record, the crash also occurred with the 32 bit msvc9 build. No *.exe.log is created.How do I do that? You mean after I run py2exe and it creates dist\library.zip I should open the zip file and add in the font then run my .EXE and it should work? Zach
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() -- Christoph