Python source code recovery from exe

萝らか妹 提交于 2019-11-28 10:36:13

问题


I had a python program written which I converted to an exe binary using py2exe. I have all of the files generated in the dist folder but due to a system crash, I lost the source code.

Is there a way to get the .py source code file back from .exe or other supporting files generated by py2exe?


回答1:


According to the following links, you can extract your .pyc files from library.zip and then use decompyle to obtain .py files similar to what you started with.

http://bytes.com/topic/python/answers/101743-py2exe-there-way-go-backwards-exe2py

http://sourceforge.net/projects/decompyle/

Hope it works, and I hope you use github or bitbucket next time.



来源:https://stackoverflow.com/questions/7260602/python-source-code-recovery-from-exe

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!