The pygame app I am trying to convert with py2exe uses a script to
start the game:
So to run the app you type "python start-game".
The app's python source files are in the directory "netrek" and the
script is one level above it. So it goes into the netrek directory and
checks each .py source file
until it finds function main() then it runs it.
This is why it's been so confusing trying to get this app to work with
py2exe. I tried telling my py2exe setup script that my starting script
is "__init__.py" - this contains the function main() - but when I run
the .exe it builds nothing happens, no window opens and there is no
console output. I think py2exe is expecting that the app is started by
running __init__.pyc (it creates __init__.exe) but this is not the
case. If you run "python __init__.py" the app will not load. You must
run the script to get it working. So is it possible to get this app
working with py2exe and if so how?
You can download the source files here:
Just unpack and the Python source files will be in directory "netrek".
If anyone can get this working I'd really appreciate getting a copy of
the py2exe setup script you use. I've spent hours on this.
<>< http://www.fidei.org ><>
Get latest updates about Open Source Projects, Conferences and News.