PY2EXE => Is there a way to go backwards? EXE2PY

J

Joe

I have the executable of a script that I wrote, that has been erased.
Is there any way to retrieve the uncompiled python script from the
executable that was created with py2exe?

Thank you,


Joe
 
S

Steve M

I have the executable of a script that I wrote, that has been erased.
Is there any way to retrieve the uncompiled python script from the
executable that was created with py2exe?


You're gonna need a case of 20-weight ball bearings and several quarts
of antifreeze. Preferably Quakerstate. No, better make it Penzoil.
 
P

Peter Hansen

Joe said:
I have the executable of a script that I wrote, that has been erased.
Is there any way to retrieve the uncompiled python script from the
executable that was created with py2exe?

The .pyc files are in a file called library.zip, and they're pretty easy
to extract.

To convert .pyc files to .py files, look for "decompyle", which might be
up-to-date these days, but is probably still available only as a for-pay
online service. Note that it cannot produce a file identical to your
source, but it can come pretty close, certainly close enough to save
your hide and tide you over until you can learn to use a source code
control system (I highly recommend Subversion as both free and
effective). ;-)

-Peter
 
J

Joe

Thank you, Peter. Your point is well taken. We a control system, but
I just never got around to using it. I think now I'll get a round to
it. :)

Thanks again,

Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,261
Messages
2,571,308
Members
47,976
Latest member
AlanaKeech

Latest Threads

Top