0

I have created a game in pygame and am trying to pack it all into an exe so others can play it with py2exe. The only thing I am having trouble with is my images folder, I have tried with all the examples from the data files page here: http://www.py2exe.org/index.cgi/data_files and even with the extremely simple one path to a png, it all goes well until I open it, and pygame cant find the image I tried to pack. Here is my setup.py

import os
from distutils.core import setup
import py2exe

mydata = [('images', ['C:\Documents and Settings\LO4HYGG2J\Desktop\Explorer_files\images\screens\titleScreenEyes.png'])]

setup(
     console=['titleScreen.py'],
     data_files=mydata,
 )

Thanks in advance

EDIT: in response to joaquin, this is the error I'm getting:

pygame.error: Couldn't open data/images/screens/titleScreenEyes.png
4

0 回答 0