[wxPython-users] [help]setup.py for py2exe

Robin Dunn robin at alldunn.com
Fri Mar 7 18:16:47 PST 2008


He Jibo wrote:
> Hi, Pythoners,
> 
> I wanto to make .exe file from a wxpython script 
> (IEHtmlWindow_revised.py in the attachment).But this script also needs 
> run.py in the attachment to run. How can I write in the setup.py for 
> py2exe to bundle run.py and IEHtmlWindow_revised.py together?

You can tell py2exe to explicitly include specific modules, but in this
case I would suggest to not do that.  The run.py module is intended to
be used for modules in the demo framework, but it really isn't much more
functionality than just making a frame to contain the main panel for the
sample.  So you'll be better off to sever all ties to the demo framework
and just make your application more standalone instead.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list