RE: [cx-freeze-users] cx_freeze, py2app both have problems to deal with reload()
Brought to you by:
atuining
From: Huaicai M. <hu...@na...> - 2005-07-14 15:55:18
|
Thanks a lot, guys. Huaicai > -----Original Message----- > From: cx-...@li... [mailto:cx-freeze-users- > ad...@li...] On Behalf Of Bob Ippolito > Sent: Wednesday, July 13, 2005 6:52 PM > To: cx-...@li...; Ralf Schmitt > Subject: Re: [cx-freeze-users] cx_freeze, py2app both have problems to > deal with reload() > > > On Jul 13, 2005, at 12:43 PM, Ralf Schmitt wrote: > > > Huaicai Mo wrote: > > > >> Sorry, my original question has a typo. The 'ImportError...' > >> happens on line > >> 112 (reload(abc)) instead of 111. No, it's not me who wanted to > >> load a module from the file system instead of > >> the zip file. I did that for py2app and py2exe is only because > >> when I run > >> the program, the 'reload(abc)' complains "ImportError, no module > >> named abc". > >> The abc module is actually in the zip file. The problem is not > >> because of > >> any module is not included in the package, as you can see if I > >> uncompress > >> the zip file into a folder and rename the folder as the same as > >> the zip file > >> name, it works. > >> > > > > reloading a module from a zipfile works for me without any problem. > > maybe your code is messing with sys.path, what is the value of > > sys.path > > when that ImportError occurs? what is the value of > > __builtin__.__import__? (see > > Depends on which Python you're using. > > https://sourceforge.net/tracker/index.php? > func=detail&aid=1029475&group_id=5470&atid=105470 > > -bob > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > cx-freeze-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users |