import * and py2exe

Larry Bates larry.bates at websafe.com`
Mon Aug 4 20:52:56 CEST 2008


Paul Sijben wrote:
> I am trying to turn my application into a WinXP exe. Py2exe has packaged
> all my files up into one humongous executable. When trying to run the
> app, it complains that it can not find modules I just saw it include.
> These invariably are modules that have been imported using
> 	from <modulename> import *
> Apparently this confuses py2exe. Well I tried unconfusing it by giving
> those modules as imports in the first place!
> 
> How can I convince the py2exe-generated app to look for those modules in
> its own .exe file???
> 
> Paul

Don't try to bundle everything into a single .EXE (this is fraught with 
"issues").  Drop back to bundle=1 or bundle=2 and it should work for you.

-Larry



More information about the Python-list mailing list