On 1/9/2008 7:03 AM, Kevin H wrote: > I have a very old python program (think Python 1.5) which was packages > using the McMillan installer. The original (unpackaged) source has > been lost. Is there a way to extract the original source from the > packaged version? > > Can someone here recommend a strategy for approaching this?
Using the standalone program "ArchiveViewer.py" shipped with PyInstaller (or the original Installer), you can extract all the .pyc or .pyo files *and* the .py of the "startup" module (the first file that you run to execute the whole application). For smallish application that are wholly contained into a single .py file, this basically means that you can recover the whole source code. [[ NOTE: this is not true anymore with PyInstaller: now only .pyc are embedded into the packaged executables ]] Once you get the .pyc/.pyo, there are commercial reverse-engineering services that should give you the equivalent .py sources. Hope this helps! -- Giovanni Bajo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/PyInstaller?hl=en -~----------~----~----~----~------~----~------~--~---
