[wxPython-users] Two exe's in one py2exe dist?
Jorgen Bodde
jorgen.maillist at gmail.com
Tue Feb 12 10:42:53 PST 2008
Once again,
Thanks everybody! I got it to work the way I said, by simply
specifying the console and windows parameter in the same setup
function. I was wrestling with "module os not found" errors only to
figure out that one of the code paths that would only be executed when
compiled with py2exe, used the not yet imported OS module ;-) I can
finally round up all chores and one of these days announce the app.
- Jorgen
On Feb 11, 2008 9:53 PM, Robin Dunn <robin at alldunn.com> wrote:
> Jorgen Bodde wrote:
> > Hi Jean Michel,
> >
> > Doing this requires a lot of overhead, and it is difficult if both
> > exe's have to share a common data structure. If you convert console.py
> > in a console exe, the dist dir is 10Mb big to start with. Then if I
> > convert the gui.py in a exe I get another 25 Mb. So if the user
> > installs both versions it will be 35 Mb worth of data on his PC. Which
> > is a bit too much..
> >
> > I did find a very elegant method though. In the setup script, simply
> > define both a windows parameter and a console parameter. py2exe
> > converts both start scripts to an exe, and the library.zip will
> > contain all the files needed by both scripts. It couldn't be more
> > elegant then that ;-)
>
> And if you have more than one gui app or more than one console app then
> I think you can just add more entries to the appropriate list as needed.
>
> --
> Robin Dunn
> Software Craftsman
> http://wxPython.org Java give you jitters? Relax with wxPython!
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
More information about the wxpython-users
mailing list