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

Re: [pygame] PY2EXE and Modules



Hi!

    I will look at it. The one I got from Luke did run except it did not
import my data. So the format for that is needed but I will experiment.
    I wrote a batch file below to make the executable with the original file
that Luke gave me split in 2 files with just the file name and quotes
deleted. For that example had game.py inside the script command.
    So I took that out and made 2 files and created a batch file to allow me
to just enter the name fully or just the name and then run the setup.

    IT ALL WORKED!

    Except my audio files stored in the data folder were not imported, so I
copied that folder over to the dist folder and it ran!

    So the the next thing is to see which commands does that since the
examples I have seen have used so many different formats...thus making it so
confusing.

    I will check this url out and see what it has to offer. My batch file is
below

        Bruce
check out skellington...

It has a skeleton of a game set up.  Including a setup file to make
executables.

I think the latest version is here:
http://media.pyweek.org/static/skellington-11.zip


@echo off
Echo Is File To Make Here?
if exist %1 goto making
if exist %1.py goto py2add
echo Error! No File!
if "%1"=="" goto end
echo %1 Invalid File Name!
goto end
:py2add
copy setup1py.txt exe2make.py
echo "%1.py" >> exe2make.py
goto fil2
:making
copy setup1py.txt exe2make.py
echo "%1" >> exe2make.py
:fil2
echo File 2
type setup2py.txt >> exe2make.py
echo Making Executable For %1
python25 exe2make.py py2exe
:end