From: Phil E. <ph...@li...> - 2007-11-20 09:46:27
|
Tony Cappellini wrote: > I've used py2exe for several command-line apps before, but not for a > Pythoncard app. > > Would someone post the contents of setup.py for a Pythoncard app? > > How do you get py2exe to put the script.rsrc.py file inside the .exe ? > Hi Tony: Take a look at the standaloneBuilder tool which comes with the PythonCard distribution. My brief notes on the process of converting PythonCard apps to executables can be found here: http://pythoncard.sourceforge.net/standalone.html Although this is based around using pyInstaller, the standaloneBuilder app supports py2exe as well. I've attached copies of the setup.py and associated data files that standaloneBuilder generates for a py2exe build, hope this helps. Essentially, the resource files stay as they are, i.e. they don't get packed into the EXE in any way. I've often thought it would be useful to write some sort of helper class which would allow resource files to be bundled up into a module that the app could import, along similar lines to the img2py stuff which comes with the wxPython demo. -- Regards Phil Edwards Brighton, UK |