Hi,
I am a newbie in python, and i am currently using py2exe in Windows and python 2.5 platform. The problem is, my python code is residing in several subdirectories (1 folder for images, 1 for other .py files etc). Now, I would like to use py2exe to create an exe file. However, after i run py2exe, the exe created can't run, as it states that it couldn't find the images, or the py files it's suppose to call. I used data_files to insert those files, and when i check, they are there. So i can't figure out what was wrong with the setup.py that i created.
Below are examples of the errors i got when i click open game.exe i created with py2exe:
error: Couldn't open C:\Documents and Settings\Administrator\Desktop\game\dist\game.exe\Data\loading_splash.jpg
WindowsError: [Error 3] The system cannot find the path specified: 'C:\\Documents and Settings\\Administrator\\Desktop\\game\\dist\\game.exe\\lib/*.*'
And within my setup.py, i got this:
setup(options = {"py2exe": {"optimize": 2, "bundle_files": 1}},
zipfile=None,
windows=["game.py"],
data_files=[("Data",glob.glob("Data/*.*")),
....................
("lib/MygameData",glob.glob("lib/MygameData\\*.*")),
....................
Anybody got any idea where i go wrong? Thanks in advance.