Hello again Thomas, thank you for your reply,

To clarify the problem, I made an example py2exe compilation and uploaded it here :
http://javabolt.com/example.zip

it contains:
root@javabolt.com# unzip -l example.zip
Archive:  example.zip
  Length     Date   Time    Name
 --------    ----   ----    ----
    16384  02-08-05 16:24   w9xpopen.exe
  5226496  07-15-06 16:05   wxmsw26h_vc.dll
    61497  02-08-05 16:26   zlib.pyd
   630784  07-15-06 16:32   _controls_.pyd
   704512  07-15-06 16:30   _core_.pyd
   372736  07-15-06 16:31   _gdi_.pyd
   491520  07-15-06 16:32   _misc_.pyd
    57401  02-08-05 16:24   _sre.pyd
   540672  07-15-06 16:31   _windows_.pyd
    24576  11-17-07 11:48   hello.exe
  3000143  11-17-07 11:48   library.zip
   979005  02-08-05 16:23   python23.dll
    28672  11-17-07 11:48   test_wx.exe
   405504  02-08-05 16:25   unicodedata.pyd
 --------                   -------
 12539902                   14 files

test_wx.exe has strings like: OnCloseMe  wxDEFAULT_FRAME_STYLEs etc
So I gather that the main python script gets sucked up as bytecode into the small exe
when it is created by 'python setup.py py2exe'

My quest tho, is to get that bytecode back as a .pyc :)

Hope that helps explain my problem a little better.

thank you,

-Will

ps setup.py used to create the exe and archive:

from distutils.core import setup
import py2exe
#########################################
setup(
    # The first three parameters are not required, if at least a
    # 'version' is given, then a versioninfo resource is built from
    # them and added to the executables.
    version = "0.5.0",
    description = "py2exe sample script",
    name = "py2exe samples",
    # targets to build
    windows = ["test_wx.py"],
    console = ["hello.py"],
    )
#########################################

Thomas Heller wrote:
willtest@box7.net schrieb:
  
Hi Thomas et al.,

I read in a few posts that it could be read by winzip...I tried
to drag and drop the exe to winzip 11 (then installed winzip 9 and tried 
that too)
then tried winrar and the excellent 7zip 
http://sourceforge.net/projects/sevenzip/

but none of those would recognize the .exe....

I will try some of those other ideas tho, zipfile and the importing
as I am quite stoked to complete this piece...
very happy I don't have to pay for disk recovery of my src i didnt back up!

thank you...also, if you can think of any reason why the winzip idea 
doesn't work for my py2exe made exe
I am all ears (when I first read that winzip would work I was very eager 
to try, and subsequently disappointed)
    

All I can say is that it works for me, with WinZip 8.0.
Are you sure that the zip is in your exe?  The default for py2exe is to
create a separate archive; by default this is named library.zip but that
can be changed in the setup script.

Anyway, are you trying to recove the Python source code from the zip?
You may want to know that the zip contains .pyc or .pyo files, not .py.

Thomas


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Py2exe-users mailing list
Py2exe-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/py2exe-users